Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PasswordReset.find(
{
include: [
User
],
where: {
token: token,
"users.email": email,
expiresAt: {
gte: (new Date())
}
}
}
@brianjmiller
Copy link
Author

brianjmiller commented Sep 16, 2013

TypeError: Cannot call method 'split' of undefined
at Object.module.exports.QueryGenerator.hashToWhereConditions (/Users/brian/Documents/Work/repos/service/node_modules/sequelize-mysql/node_modules/sequelize/lib/di
alects/mysql/query-generator.js:442:31)
at Object.module.exports.QueryGenerator.getWhereConditions (/Users/brian/Documents/Work/repos/service/node_modules/sequelize-mysql/node_modules/sequelize/lib/dialects/mysql/query-generator.js:409:23)
at Object.module.exports.QueryGenerator.selectQuery (/Users/brian/Documents/Work/repos/service/node_modules/sequelize-mysql/node_modules/sequelize/lib/dialects/mysql/query-generator.js:215:30)
at module.exports.QueryInterface.select (/Users/brian/Documents/Work/repos/service/node_modules/sequelize-mysql/node_modules/sequelize/lib/query-interface.js:291:35)
at module.exports.DAOFactory.find (/Users/brian/Documents/Work/repos/service/node_modules/sequelize-mysql/node_modules/sequelize/lib/dao-factory.js:284:32)
at Controller.CoreController.passwordResetVerify (/Users/brian/Documents/Work/repos/service/app/controllers/core_controller.js:137:19)
at iter (/Users/brian/Documents/Work/repos/service/node_modules/locomotive/lib/locomotive/controller.js:457:21)
at Controller._invoke (/Users/brian/Documents/Work/repos/service/node_modules/locomotive/lib/locomotive/controller.js:476:5)
at Locomotive.handle (/Users/brian/Documents/Work/repos/service/node_modules/locomotive/lib/locomotive/middleware/handle.js:25:14)
at callbacks (/Users/brian/Documents/Work/repos/service/node_modules/express/lib/router/index.js:164:37)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment