kleydon / prisma-session-store

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

fix: prevent crash in set #84

Closed kleydon closed 2 years ago

kleydon commented 2 years ago

Addresses github issue #82.

Wraps set() function's prisma.create/update functions within a try/catch block.

When an error is caught, it is now logged and supplied to a callback (if provided) as a callback's "error" argument, as suggested by the session store implementation section of express-session's documentation.

kleydon commented 2 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: