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