fix: status order not update when enable / disable
This commit is contained in:
parent
3af6701ff0
commit
0ac81ce743
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ export class InstitutionController extends Controller {
|
|||
) {
|
||||
return await prisma.institution.update({
|
||||
where: { id: institutionId },
|
||||
data: body,
|
||||
data: { ...body, statusOrder: +(body.status === "INACTIVE") },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue