juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
12.1k stars 1.27k forks source link

fix(router): change Not Found response to Internal Server Error for empty vector #6150

Open shreyshukla29 opened 5 days ago

shreyshukla29 commented 5 days ago

…ctor (#5916)

Modified the get_aggregates_for_payments function to address issue #5916.

This fix ensures that valid empty results no longer cause false error responses and internal issues are correctly flagged with a 500 error.

Type of Change

Description

Additional Changes

Motivation and Context

How did you test it?

Checklist

semanticdiff-com[bot] commented 5 days ago

Review changes with SemanticDiff.

Analyzed 1 of 1 files.

Overall, the semantic diff is 59% smaller than the GitHub diff.

Filename Status
:heavy_check_mark: crates/router/src/core/payments.rs 58.67% smaller