forRoles IS NOT NULL, coalesce to empty=unrestricted
This commit is contained in:
parent
f3b5c3f447
commit
b61c1d5b27
9 changed files with 16 additions and 16 deletions
|
|
@ -63,7 +63,7 @@ export class AnnouncementService {
|
|||
}))
|
||||
.andWhere(new Brackets(qb => {
|
||||
qb.orWhere('announcement.forRoles && :roles', { roles: roles.map((r) => r.id) });
|
||||
qb.orWhere('announcement.forRoles IS NULL');
|
||||
qb.orWhere('announcement.forRoles = \'{}\'');
|
||||
}))
|
||||
.andWhere(`announcement.id NOT IN (${ readsQuery.getQuery() })`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue