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

@ -62,7 +62,7 @@ export class EmployeeOtherInfo extends Controller {
...body,
employee: { connect: { id: employeeId } },
createdBy: req.user.name,
updateBy: req.user.name,
updatedBy: req.user.name,
},
});
@ -88,7 +88,7 @@ export class EmployeeOtherInfo extends Controller {
const record = await prisma.employeeOtherInfo.update({
where: { id: otherInfoId, employeeId },
data: { ...body, createdBy: req.user.name, updateBy: req.user.name },
data: { ...body, createdBy: req.user.name, updatedBy: req.user.name },
});
this.setStatus(HttpStatus.CREATED);