errsole-sequelize
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -489,3 +489,3 @@ /** | ||
const user = await this.errsoleUsers.findOne({ where: { email } }); | ||
const user = await this.errsoleUsers.findOne({ where: { email }, raw: true }); | ||
if (!user) throw new Error('User not found.'); | ||
@@ -505,3 +505,3 @@ | ||
delete user.hashedPassword; | ||
return { item: { user } }; | ||
return { item: user }; | ||
} | ||
@@ -508,0 +508,0 @@ |
{ | ||
"name": "errsole-sequelize", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Sequelize storage plugin for Errsole", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
18340