checkpoint

This commit is contained in:
AdisakKanthawilang 2024-01-26 16:09:06 +07:00
parent aa3e7c6489
commit db2cad0a95
2 changed files with 0 additions and 4 deletions

View file

@ -72,10 +72,8 @@ export class OrgRootController extends Controller {
if (orgRevision) {
orgRoot.createdUserId = request.user.sub;
orgRoot.createdFullName = request.user.name;
orgRoot.createdAt = new Date();
orgRoot.lastUpdateUserId = request.user.sub;
orgRoot.lastUpdateFullName = request.user.name;
orgRoot.lastUpdatedAt = new Date();
await this.orgRootRepository.save(orgRoot);
}else{
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี Revision");