เพิ่มวันที่แก้ไข
This commit is contained in:
parent
218886b3f4
commit
ad4efc2b47
28 changed files with 205 additions and 40 deletions
|
|
@ -71,6 +71,8 @@ export class InsigniaController extends Controller {
|
|||
insignia.createdFullName = request.user.name;
|
||||
insignia.lastUpdateUserId = request.user.sub;
|
||||
insignia.lastUpdateFullName = request.user.name;
|
||||
insignia.createdAt = new Date();
|
||||
insignia.lastUpdatedAt = new Date();
|
||||
await this.insigniaRepository.save(insignia);
|
||||
return new HttpSuccess(insignia.id);
|
||||
}
|
||||
|
|
@ -113,6 +115,7 @@ export class InsigniaController extends Controller {
|
|||
|
||||
insignia.lastUpdateUserId = request.user.sub;
|
||||
insignia.lastUpdateFullName = request.user.name;
|
||||
insignia.lastUpdatedAt = new Date();
|
||||
this.insigniaRepository.merge(insignia, requestBody);
|
||||
await this.insigniaRepository.save(insignia);
|
||||
return new HttpSuccess(insignia.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue