Skip to content

Commit

Permalink
fix(adapter): fix ISO Datetime type error in Prisma updateSession (#640)
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Domino <yo@ndo.dev>
Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
3 people committed Jan 19, 2021
1 parent 0987f72 commit b3c7617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/prisma/index.js
Expand Up @@ -219,7 +219,7 @@ const Adapter = (config) => {
}

const { id, expires } = session
return prisma[Session].update({ where: { id }, data: { expires } })
return prisma[Session].update({ where: { id }, data: { expires: expires.toISOString() } })
} catch (error) {
logger.error('UPDATE_SESSION_ERROR', error)
return Promise.reject(new Error('UPDATE_SESSION_ERROR', error))
Expand Down

0 comments on commit b3c7617

Please sign in to comment.