no message

This commit is contained in:
kittapath 2024-11-21 11:49:14 +07:00
parent fb3dd54518
commit a40a2a7f2b

View file

@ -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 });
}
/**