no message

This commit is contained in:
kittapath 2024-08-13 20:01:53 +07:00
parent 25b5d58f2a
commit 53787597fd
54 changed files with 219 additions and 332 deletions

View file

@ -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);
}