feat: include registered branch relation
This commit is contained in:
parent
13ad7a4bf1
commit
3d361fd79f
1 changed files with 2 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ export class TaskController extends Controller {
|
||||||
userTask: true,
|
userTask: true,
|
||||||
taskList: true,
|
taskList: true,
|
||||||
institution: true,
|
institution: true,
|
||||||
|
registeredBranch: true,
|
||||||
createdBy: true,
|
createdBy: true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
@ -735,6 +736,7 @@ export class UserTaskController extends Controller {
|
||||||
userTask: {
|
userTask: {
|
||||||
where: { userId: req.user.sub },
|
where: { userId: req.user.sub },
|
||||||
},
|
},
|
||||||
|
registeredBranch: true,
|
||||||
institution: true,
|
institution: true,
|
||||||
createdBy: true,
|
createdBy: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue