-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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!
There was a problem hiding this 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.
Description
Screenshots/Media
Issues
Closes #