fix salaryId set null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
This commit is contained in:
parent
2627c58244
commit
e750b39639
1 changed files with 4 additions and 1 deletions
|
|
@ -1472,7 +1472,10 @@ export class ProfileSalaryTempController extends Controller {
|
||||||
if (originalTempRows.length > 0) {
|
if (originalTempRows.length > 0) {
|
||||||
await queryRunner.manager.insert(
|
await queryRunner.manager.insert(
|
||||||
ProfileSalaryTemp,
|
ProfileSalaryTemp,
|
||||||
originalTempRows.map(({ id, ...data }) => data),
|
originalTempRows.map(({ id, ...data }) => ({
|
||||||
|
...data,
|
||||||
|
salaryId: null,
|
||||||
|
})),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue