get id profile insignia

This commit is contained in:
kittapath 2025-01-29 09:27:10 +07:00
parent 8b699f6441
commit 871e2e5247
3 changed files with 3 additions and 3 deletions

View file

@ -150,7 +150,7 @@ export class ProfileInsigniaController extends Controller {
history.profileInsigniaId = data.id; history.profileInsigniaId = data.id;
await this.insigniaHistoryRepo.save(history, { data: req }); await this.insigniaHistoryRepo.save(history, { data: req });
return new HttpSuccess(); return new HttpSuccess(data.id);
} }
@Patch("{insigniaId}") @Patch("{insigniaId}")

View file

@ -157,7 +157,7 @@ export class ProfileInsigniaEmployeeController extends Controller {
history.profileInsigniaId = data.id; history.profileInsigniaId = data.id;
await this.insigniaHistoryRepo.save(history, { data: req }); await this.insigniaHistoryRepo.save(history, { data: req });
return new HttpSuccess(); return new HttpSuccess(data.id);
} }
@Patch("{insigniaId}") @Patch("{insigniaId}")

View file

@ -149,7 +149,7 @@ export class ProfileInsigniaEmployeeTempController extends Controller {
history.profileInsigniaId = data.id; history.profileInsigniaId = data.id;
await this.insigniaHistoryRepo.save(history, { data: req }); await this.insigniaHistoryRepo.save(history, { data: req });
return new HttpSuccess(); return new HttpSuccess(data.id);
} }
@Patch("{insigniaId}") @Patch("{insigniaId}")