diff --git a/src/controllers/OrgChild2Controller.ts b/src/controllers/OrgChild2Controller.ts index 610b542d..0c699512 100644 --- a/src/controllers/OrgChild2Controller.ts +++ b/src/controllers/OrgChild2Controller.ts @@ -66,10 +66,8 @@ export class OrgChild2Controller extends Controller { if (orgChild1) { orgChild2.createdUserId = request.user.sub; orgChild2.createdFullName = request.user.name; - orgChild2.createdAt = new Date(); orgChild2.lastUpdateUserId = request.user.sub; orgChild2.lastUpdateFullName = request.user.name; - orgChild2.lastUpdatedAt = new Date(); await this.orgChild2Repository.save(orgChild2); } else { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีโครงสร้างระดับ1"); diff --git a/src/controllers/OrgRootController.ts b/src/controllers/OrgRootController.ts index 59f7d79b..0a7d9297 100644 --- a/src/controllers/OrgRootController.ts +++ b/src/controllers/OrgRootController.ts @@ -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");