fix: fk
This commit is contained in:
parent
8ba4f23d14
commit
f4fcec6b5a
1 changed files with 1 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ export class EmployeeController extends Controller {
|
||||||
where: { id: v.id || "" },
|
where: { id: v.id || "" },
|
||||||
create: {
|
create: {
|
||||||
...v,
|
...v,
|
||||||
|
provinceId: !v.provinceId ? undefined : v.provinceId,
|
||||||
createdBy: req.user.name,
|
createdBy: req.user.name,
|
||||||
updatedBy: req.user.name,
|
updatedBy: req.user.name,
|
||||||
id: undefined,
|
id: undefined,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue