Skip to content

Commit

Permalink
Merge pull request #73 from kleydon/fix-double-defer
Browse files Browse the repository at this point in the history
fix: double defer in destroy function
  • Loading branch information
kleydon authored Jan 26, 2022
2 parents 72ae01e + d34595e commit 8de2516
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/prisma-session-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ export class PrismaSessionStore<M extends string = 'session'> extends Store {
`Attempt to destroy non-existent session:${String(sid)} ${String(e)}`
);
if (callback) defer(callback, e);

return;
}

if (callback) defer(callback);
Expand Down

0 comments on commit 8de2516

Please sign in to comment.