Merge branch 'adiDev' into develop
This commit is contained in:
commit
93f1a7c00e
2 changed files with 0 additions and 4 deletions
|
|
@ -66,10 +66,8 @@ export class OrgChild2Controller extends Controller {
|
||||||
if (orgChild1) {
|
if (orgChild1) {
|
||||||
orgChild2.createdUserId = request.user.sub;
|
orgChild2.createdUserId = request.user.sub;
|
||||||
orgChild2.createdFullName = request.user.name;
|
orgChild2.createdFullName = request.user.name;
|
||||||
orgChild2.createdAt = new Date();
|
|
||||||
orgChild2.lastUpdateUserId = request.user.sub;
|
orgChild2.lastUpdateUserId = request.user.sub;
|
||||||
orgChild2.lastUpdateFullName = request.user.name;
|
orgChild2.lastUpdateFullName = request.user.name;
|
||||||
orgChild2.lastUpdatedAt = new Date();
|
|
||||||
await this.orgChild2Repository.save(orgChild2);
|
await this.orgChild2Repository.save(orgChild2);
|
||||||
} else {
|
} else {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีโครงสร้างระดับ1");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีโครงสร้างระดับ1");
|
||||||
|
|
|
||||||
|
|
@ -72,10 +72,8 @@ export class OrgRootController extends Controller {
|
||||||
if (orgRevision) {
|
if (orgRevision) {
|
||||||
orgRoot.createdUserId = request.user.sub;
|
orgRoot.createdUserId = request.user.sub;
|
||||||
orgRoot.createdFullName = request.user.name;
|
orgRoot.createdFullName = request.user.name;
|
||||||
orgRoot.createdAt = new Date();
|
|
||||||
orgRoot.lastUpdateUserId = request.user.sub;
|
orgRoot.lastUpdateUserId = request.user.sub;
|
||||||
orgRoot.lastUpdateFullName = request.user.name;
|
orgRoot.lastUpdateFullName = request.user.name;
|
||||||
orgRoot.lastUpdatedAt = new Date();
|
|
||||||
await this.orgRootRepository.save(orgRoot);
|
await this.orgRootRepository.save(orgRoot);
|
||||||
}else{
|
}else{
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี Revision");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี Revision");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue