refactor: do not update parent status to active
This commit is contained in:
parent
e6315a0687
commit
a7702d8599
1 changed files with 0 additions and 5 deletions
|
|
@ -329,11 +329,6 @@ export class CustomerBranchController extends Controller {
|
|||
{ isolationLevel: Prisma.TransactionIsolationLevel.Serializable },
|
||||
);
|
||||
|
||||
await prisma.customer.updateMany({
|
||||
where: { id: customerId, status: Status.CREATED },
|
||||
data: { status: Status.ACTIVE },
|
||||
});
|
||||
|
||||
this.setStatus(HttpStatus.CREATED);
|
||||
|
||||
return record;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue