kleydon / prisma-session-store

Express session store for Prisma
MIT License
116 stars 18 forks source link

Recovery from invalid connection #114

Closed ka2n closed 10 months ago

ka2n commented 11 months ago

Hello,

This pull request addresses an issue where PrismaSessionStore does not recover after an initial failed connection, even when Prisma later connects successfully. The fix implements a recovery process once validateConnection subsequently succeeds.

Thank you.

kleydon commented 11 months ago

Thanks for the contribution! I'm currently on the road, but will check it out over the next week.

On Jun 20, 2023, at 7:32 AM, Katsuma Ito @.***> wrote:

 Hello,

This pull request addresses an issue where PrismaSessionStore does not recover after an initial failed connection, even when Prisma later connects successfully. The fix implements a recovery process once validateConnection subsequently succeeds.

Thank you.

You can view, comment on, or merge this pull request online at:

https://github.com/kleydon/prisma-session-store/pull/114

Commit Summary

11375ca fix: recover from disconnected state File Changes (1 file) M src/lib/prisma-session-store.ts (24) Patch Links:

https://github.com/kleydon/prisma-session-store/pull/114.patch https://github.com/kleydon/prisma-session-store/pull/114.diff — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

kleydon commented 10 months ago

Just merged into master; thanks again for the fix.

kleydon commented 10 months ago

:tada: This PR is included in version 3.1.12 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

ka2n commented 10 months ago

@kleydon Thank you!!