mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: use joins instead of left joins
This commit is contained in:
parent
823f6330b7
commit
2a5b8e3806
@ -28,15 +28,11 @@ export class PersonalDashboardReadModel implements IPersonalDashboardReadModel {
|
||||
}>('projects')
|
||||
.join('role_user', 'projects.id', 'role_user.project')
|
||||
.join('roles', 'role_user.role_id', 'roles.id')
|
||||
.leftJoin('group_user', (join) => {
|
||||
.join('group_user', (join) => {
|
||||
join.on('group_user.user_id', '=', this.db.raw('?', [userId]));
|
||||
})
|
||||
.leftJoin(
|
||||
'group_role',
|
||||
'group_role.group_id',
|
||||
'group_user.group_id',
|
||||
)
|
||||
.leftJoin(
|
||||
.join('group_role', 'group_role.group_id', 'group_user.group_id')
|
||||
.join(
|
||||
'roles as group_roles',
|
||||
'group_role.role_id',
|
||||
'group_roles.id',
|
||||
|
Loading…
Reference in New Issue
Block a user