fix: error when trying to update
This commit is contained in:
parent
d43ac9f54e
commit
58611f8589
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ export class CustomerBranchController extends Controller {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
await prisma.customer.update({
|
await prisma.customer.updateMany({
|
||||||
where: { id: customerId, status: Status.CREATED },
|
where: { id: customerId, status: Status.CREATED },
|
||||||
data: { status: Status.ACTIVE },
|
data: { status: Status.ACTIVE },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue