refactor!: change typo field and reset migration

This commit is contained in:
Methapon2001 2024-06-28 09:35:32 +07:00
parent d0d59cea0d
commit 0e2cc3cb21
58 changed files with 327 additions and 784 deletions

View file

@ -298,7 +298,7 @@ export class UserController extends Controller {
district: { connect: districtId ? { id: districtId } : undefined },
subDistrict: { connect: subDistrictId ? { id: subDistrictId } : undefined },
createdBy: req.user.name,
updateBy: req.user.name,
updatedBy: req.user.name,
},
});
@ -438,7 +438,7 @@ export class UserController extends Controller {
connect: subDistrictId ? { id: subDistrictId } : undefined,
disconnect: subDistrictId === null || undefined,
},
updateBy: req.user.name,
updatedBy: req.user.name,
},
where: { id: userId },
});