fix: wrong instance used
This commit is contained in:
parent
dbf32a987d
commit
500e5a8fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ async function userBranchCodeGen(branch: Branch, user: User[]) {
|
|||
update: { value: { increment: 1 } },
|
||||
});
|
||||
|
||||
await prisma.user.update({
|
||||
await tx.user.update({
|
||||
where: { id: usr.id },
|
||||
data: {
|
||||
code: `${last.key.slice(7)}${last.value.toString().padStart(4, "0")}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue