Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zero service requests bug #132

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

joshtyf
Copy link
Owner

@joshtyf joshtyf commented May 6, 2024

Description

Previously, if there were no SRs, the metadata returned would be an empty array and thus we got an index out of bounds error. I've fixed this by using $addFields to always add in the array with total count inside.

@joshtyf joshtyf added backend Backend related fix Fixes something labels May 6, 2024
@joshtyf joshtyf self-assigned this May 6, 2024
Copy link
Collaborator

@Ziyang-98 Ziyang-98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshtyf joshtyf merged commit 9ab5610 into main May 7, 2024
2 checks passed
@joshtyf joshtyf deleted the fix/zero-service-requests-bug branch May 7, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related fix Fixes something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants