We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Under the dishes table, we should add a two new columns to allow us to calculate the average rating of the dish:
We will also need to add a few tRPC procedures to access this data on the frontend.
rating
oldRating
newRating
The text was updated successfully, but these errors were encountered:
dlustre
Successfully merging a pull request may close this issue.
Database
Under the dishes table, we should add a two new columns to allow us to calculate the average rating of the dish:
Procedures
We will also need to add a few tRPC procedures to access this data on the frontend.
rating
, adds 1 to the dish's numRatings andrating
to the totalRatingoldRating
, andnewRating
, adds (newRating
-oldRating
) to the totalRatingThe text was updated successfully, but these errors were encountered: