fix salaryId set null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s

This commit is contained in:
Warunee Tamkoo 2026-02-06 21:58:45 +07:00
parent 2627c58244
commit e750b39639

View file

@ -1472,7 +1472,10 @@ export class ProfileSalaryTempController extends Controller {
if (originalTempRows.length > 0) {
await queryRunner.manager.insert(
ProfileSalaryTemp,
originalTempRows.map(({ id, ...data }) => data),
originalTempRows.map(({ id, ...data }) => ({
...data,
salaryId: null,
})),
);
}