diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index 069bc57e..7f60eb08 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -2330,6 +2330,11 @@ export class OrganizationController extends Controller { }; } + const _revision = await this.orgRevisionRepository.findOne({ + where: { id: id }, + }); + if (!_revision) throw new HttpError(HttpStatusCode.NOT_FOUND, "not found."); + const orgRootData = await AppDataSource.getRepository(OrgRoot) .createQueryBuilder("orgRoot") .where("orgRoot.orgRevisionId = :id", { id }) @@ -3095,7 +3100,7 @@ export class OrganizationController extends Controller { }), ); - return new HttpSuccess(formattedData); + return new HttpSuccess({ remark: _revision.remark, data: formattedData }); } /**