no message
This commit is contained in:
parent
25b5d58f2a
commit
53787597fd
54 changed files with 219 additions and 332 deletions
|
|
@ -155,13 +155,11 @@ export class ProfileAbilityEmployeeController extends Controller {
|
|||
|
||||
Object.assign(data, { ...body, ...meta });
|
||||
const history = new ProfileAbilityHistory();
|
||||
history.profileAbilityId = data.id;
|
||||
Object.assign(history, { ...data, id: undefined });
|
||||
|
||||
await Promise.all([
|
||||
this.profileAbilityRepo.save(data),
|
||||
(history.profileAbilityId = data.id),
|
||||
this.profileAbilityHistoryRepo.save(history),
|
||||
]);
|
||||
await this.profileAbilityRepo.save(data);
|
||||
history.profileAbilityId = data.id;
|
||||
await this.profileAbilityHistoryRepo.save(history);
|
||||
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue