Refactored queries.
This commit is contained in:
1 parent
f36a689817
commit
8904b7b4ed
27 files changed
+137
-144
No files matched your search
@@ -53,12 +53,14 @@ export async function createTeamUser(
|
||||
}
|
||||
|
||||
export async function updateTeamUser(
|
||||
teamUserId: string,
|
||||
data: Prisma.TeamUserUpdateInput,
|
||||
where: Prisma.TeamUserWhereUniqueInput,
|
||||
): Promise<TeamUser> {
|
||||
return prisma.client.teamUser.update({
|
||||
where: {
|
||||
id: teamUserId,
|
||||
},
|
||||
data,
|
||||
where,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user