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