fix: error when trying to update

This commit is contained in:
Methapon2001 2024-04-05 14:28:25 +07:00
parent d43ac9f54e
commit 58611f8589

View file

@ -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 },
}); });