Skip to content

Commit

Permalink
feat: Replace primsa.$queryRaw() with calls to prisma models (#19)
Browse files Browse the repository at this point in the history
* feat: Replace primsa. with calls to prisma models

* feat: Get count and avg from Prisma for pricesPaid, remove pricesPaid object

* fix: Rebase issues

* chore: Tidy up

* feat: Correctly desctructure prisma queries and catch errors to type narrow

* fix: Better type narrowing in calculationSchema
  • Loading branch information
DafyddLlyr authored Aug 16, 2024
1 parent 8ccd3fd commit b45b76d
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 251 deletions.
Loading

0 comments on commit b45b76d

Please sign in to comment.