Skip to content

Commit 6298ad2

Browse files
committed
fix: 🐛 claims expiry query
1 parent fa9a40a commit 6298ad2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/middleware/queries/claims.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ function createClaimsFilters(variables: ClaimsQueryFilter): {
3636
}
3737
if (!includeExpired) {
3838
args.push('$expiryTimestamp: BigFloat');
39-
filters.push('filterExpiry: { lessThan: $expiryTimestamp } , expiry: { isNull: true }');
39+
filters.push(
40+
'or: [{ expiry: { isNull: true } }, { filterExpiry: { greaterThan: $expiryTimestamp } }]'
41+
);
4042
}
4143

4244
if (claimTypes && !customClaimTypeIds) {

0 commit comments

Comments
 (0)