แก้ pathสร้างโครงสร้าง
This commit is contained in:
parent
ae43aa918d
commit
f9f0782cb2
1 changed files with 36 additions and 39 deletions
|
|
@ -112,7 +112,7 @@ export class OrganizationController extends Controller {
|
||||||
* @summary ORG_022 - สร้างโครงสร้างใหม่ #23 (ยังไม่เสร็จ)
|
* @summary ORG_022 - สร้างโครงสร้างใหม่ #23 (ยังไม่เสร็จ)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Post()
|
@Post("draft")
|
||||||
async CreateOrgRevision(
|
async CreateOrgRevision(
|
||||||
@Body() requestBody: CreateOrgRevision,
|
@Body() requestBody: CreateOrgRevision,
|
||||||
@Request() request: { user: Record<string, any> },
|
@Request() request: { user: Record<string, any> },
|
||||||
|
|
@ -288,9 +288,7 @@ export class OrganizationController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("{id}")
|
@Get("{id}")
|
||||||
async detail(@Path() id: string) {
|
async detail(@Path() id: string) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const orgRevisionData = await AppDataSource.getRepository(OrgRevision)
|
const orgRevisionData = await AppDataSource.getRepository(OrgRevision)
|
||||||
.createQueryBuilder("orgRevision")
|
.createQueryBuilder("orgRevision")
|
||||||
// .leftJoin("orgRevision.orgRoots", "orgRoot")
|
// .leftJoin("orgRevision.orgRoots", "orgRoot")
|
||||||
|
|
@ -332,7 +330,6 @@ export class OrganizationController extends Controller {
|
||||||
// ])
|
// ])
|
||||||
.getOne();
|
.getOne();
|
||||||
|
|
||||||
|
|
||||||
return new HttpSuccess(orgRevisionData);
|
return new HttpSuccess(orgRevisionData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return error;
|
return error;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue