fix: do not make query if no notification type is requested
This commit is contained in:
parent
440d961ab4
commit
33b45d1d22
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ export class NotificationHelpers {
|
||||||
requestedTypes = requestedTypes.filter((p) => !excludedTypes.includes(p));
|
requestedTypes = requestedTypes.filter((p) => !excludedTypes.includes(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!requestedTypes.length) return [];
|
||||||
|
|
||||||
const query = PaginationHelpers.makePaginationQuery(
|
const query = PaginationHelpers.makePaginationQuery(
|
||||||
Notifications.createQueryBuilder("notification"),
|
Notifications.createQueryBuilder("notification"),
|
||||||
sinceId,
|
sinceId,
|
||||||
|
|
Loading…
Reference in a new issue