Skip to content

Commit

Permalink
Patch/rename the prisma model to match shooter gql object (#25)
Browse files Browse the repository at this point in the history
* rename prisma model

* primsa migrate

* fix the wrong where
  • Loading branch information
normalid-awa authored Jun 11, 2024
1 parent 8d79181 commit e298a4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphql/Shooter/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ShooterType = objectType({
resolve: async (src, args, ctx) => {
return (await ctx.prisma.ranking.findFirst({
where: {
id: src.id,
shooterId: src.id,
},
orderBy: {
tick: "desc",
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ model Shooter {
email String
rankings Ranking[]
ratings Rating[]
elo Elo[]
elos Elo[]
team Team? @relation(fields: [teamId], references: [id], onDelete: SetNull)
teamId Int?
}
Expand Down

0 comments on commit e298a4c

Please sign in to comment.