We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6770716 commit bfd5109Copy full SHA for bfd5109
lib/model/query/sessions.js
@@ -32,7 +32,7 @@ const getByBearerToken = (token) => ({ maybeOne }) => (isValidToken(token) ? may
32
select ${_unjoiner.fields} from sessions
33
join actors on actors.id=sessions."actorId"
34
where token=${token} and sessions."expiresAt" > now()`)
35
- .then(map(_unjoiner)) : Option.none());
+ .then(map(_unjoiner)) : Promise.resolve(Option.none()));
36
37
const terminateByActorId = (actorId, current = undefined) => ({ run }) =>
38
run(sql`DELETE FROM sessions WHERE "actorId"=${actorId}
0 commit comments