fix: relation
This commit is contained in:
parent
015c119d3f
commit
45e545da08
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue