no message

This commit is contained in:
Kittapath 2024-03-27 16:40:17 +07:00
parent ad08061836
commit ab365257de

View file

@ -471,7 +471,12 @@ export class OrganizationUnauthorizeController extends Controller {
const data = await this.orgRootRepository.find({
where: { orgRevisionId: orgRevisionActive.id },
});
return new HttpSuccess(data.map((x) => x.id));
return new HttpSuccess(
data.map((x) => ({
rootId: x.id,
root: x.orgRootName,
})),
);
} catch (error) {
return error;
}