Fix non-authenticated users being counted as sessions (#362)

This commit is contained in:
Paco
2026-03-02 21:02:58 +00:00
committed by GitHub
parent 236022e99f
commit f3e90bd033
+1
View File
@@ -87,6 +87,7 @@ export default function createDBSessionHandler(): SessionProvider {
expiresAt: { expiresAt: {
gt: DateTime.now().toJSDate(), gt: DateTime.now().toJSDate(),
}, },
userId: { not: null },
}, },
}) })
).length || 0 ).length || 0