mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-12 04:57:30 -07:00
fix type
This commit is contained in:
parent
7727e5178e
commit
39e89c0489
1 changed files with 2 additions and 2 deletions
|
@ -103,9 +103,9 @@ export default define(meta, async (ps, user) => {
|
|||
query.setParameters(followingQuery.getParameters());
|
||||
}
|
||||
|
||||
if (ps.includeTypes?.length > 0) {
|
||||
if (ps.includeTypes && ps.includeTypes.length > 0) {
|
||||
query.andWhere(`notification.type IN (:...includeTypes)`, { includeTypes: ps.includeTypes });
|
||||
} else if (ps.excludeTypes?.length > 0) {
|
||||
} else if (ps.excludeTypes && ps.excludeTypes.length > 0) {
|
||||
query.andWhere(`notification.type NOT IN (:...excludeTypes)`, { excludeTypes: ps.excludeTypes });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue