แก้apiยิงไปข้างนอก
This commit is contained in:
parent
afc42b743e
commit
109bea3fc8
2 changed files with 8 additions and 8 deletions
|
|
@ -141,7 +141,7 @@ export class DevelopmentController extends Controller {
|
|||
development.createdFullName = request.user.name;
|
||||
development.lastUpdateUserId = request.user.sub;
|
||||
development.lastUpdateFullName = request.user.name;
|
||||
|
||||
|
||||
await this.developmentRepository.save(development);
|
||||
return new HttpSuccess(development.id);
|
||||
}
|
||||
|
|
@ -247,13 +247,13 @@ export class DevelopmentController extends Controller {
|
|||
break;
|
||||
}
|
||||
case 3: {
|
||||
development.child4 = _null;
|
||||
development.child4Id = _null;
|
||||
development.child4ShortName = _null;
|
||||
development.child4 = _null;
|
||||
development.child4Id = _null;
|
||||
development.child4ShortName = _null;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโครงการ/หลักสูตรการฝึกอบรม");
|
||||
default:
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโครงการ/หลักสูตรการฝึกอบรม");
|
||||
}
|
||||
await this.developmentRepository.save(development);
|
||||
return new HttpSuccess(development.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue