no message
This commit is contained in:
parent
fb3dd54518
commit
a40a2a7f2b
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
const orgRootData = await AppDataSource.getRepository(OrgRoot)
|
||||||
.createQueryBuilder("orgRoot")
|
.createQueryBuilder("orgRoot")
|
||||||
.where("orgRoot.orgRevisionId = :id", { id })
|
.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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue