Finally finished the massive refactor... transitions still broke but it's fine for now.
This commit is contained in:
10
private/database/queries/team/GetTeamBySeasonAndUser.sql
Normal file
10
private/database/queries/team/GetTeamBySeasonAndUser.sql
Normal file
@ -0,0 +1,10 @@
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
"Teams"
|
||||
INNER JOIN
|
||||
"TeamUsersSeasons" ON "TeamUsersSeasons"."teamId" = "Teams"."id"
|
||||
WHERE
|
||||
"TeamUsersSeasons"."userId" = ${userId} AND
|
||||
"TeamUsersSeasons"."seasonId" = ${seasonId}
|
||||
LIMIT 1;
|
Reference in New Issue
Block a user