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

Created total endpoint and settings skeleton #78

Merged
merged 5 commits into from
Feb 23, 2025

Conversation

brelieu05
Copy link
Contributor

Description

Screenshots/Media

image

Issues

Closes #

@brelieu05 brelieu05 linked an issue Feb 14, 2025 that may be closed by this pull request
12 tasks
Copy link
Collaborator

@jessieh9 jessieh9 left a comment

Choose a reason for hiding this comment

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

Hey @brelieu05 @colet0227, awesome work on the total endpoint, it was really complicated but you guys got it!! Settings page looks great! Just a small fixes

  • line 344 eventID is queried from invoices table but previously you already got the invoice so wouldn't you be able to just do invoice.eventID to prevent another call to DB
  • line 377 they round it to 2 decimal places, but I think what we should do is remove the round and make it be the actual number and on the frontend we can round it or cut it off later for accuracy (same for line 392 and 402)

Other than that, really good work, thanks!

@colet0227 colet0227 requested a review from jessieh9 February 21, 2025 22:55
Copy link
Collaborator

@jessieh9 jessieh9 left a comment

Choose a reason for hiding this comment

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

@brelieu05 @colet0227 Looks good to me, one small issue was that when you were fixing the cost to make it unrounded, you forgot to return bookingCost within bookingCosts so some endpoints returned "null". I fixed it for you guys since it was a quick fix but good work! Keep in mind these small changes next time.

@jessieh9 jessieh9 merged commit e743dd9 into main Feb 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings page skeleton and /total endpoint
4 participants