updated sequelize

This commit is contained in:
mserranom
2020-03-16 16:31:02 +01:00
parent 3ff9c18dcb
commit 6f837f1a74
4 changed files with 52 additions and 64 deletions

View File

@@ -32,7 +32,7 @@ module.exports = ProjectPersistenceManager = {
db.Project.findOrCreate({ where: { project_id } })
.spread((project, created) =>
project
.updateAttributes({ lastAccessed: new Date() })
.update({ lastAccessed: new Date() })
.then(() => cb())
.error(cb)
)