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

@ -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");