fix: relation

This commit is contained in:
Methapon Metanipat 2024-09-06 14:25:19 +07:00
parent 015c119d3f
commit 45e545da08

View file

@ -288,7 +288,10 @@ export class UserController extends Controller {
]);
return {
result,
result: result.map((v) => ({
...v,
branch: includeBranch ? v.branch.map((a) => a.branch) : undefined,
})),
page,
pageSize,
total,