no message
This commit is contained in:
parent
25b5d58f2a
commit
53787597fd
54 changed files with 219 additions and 332 deletions
|
|
@ -222,13 +222,11 @@ export class ProfileFamilyFatherEmployeeTempController extends Controller {
|
|||
familyFather.lastUpdateFullName = req.user.name;
|
||||
|
||||
const history = new ProfileFamilyFatherHistory();
|
||||
history.profileFamilyFatherId = familyFather.id;
|
||||
Object.assign(history, { ...familyFather, id: undefined });
|
||||
|
||||
await Promise.all([
|
||||
this.ProfileFamilyFather.save(familyFather),
|
||||
(history.profileFamilyFatherId = familyFather.id),
|
||||
this.ProfileFamilyFatherHistory.save(history),
|
||||
]);
|
||||
await this.ProfileFamilyFather.save(familyFather);
|
||||
history.profileFamilyFatherId = familyFather.id;
|
||||
await this.ProfileFamilyFatherHistory.save(history);
|
||||
|
||||
return new HttpSuccess(familyFather.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue