refactor!: change typo field and reset migration
This commit is contained in:
parent
d0d59cea0d
commit
0e2cc3cb21
58 changed files with 327 additions and 784 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue