fix notifications

This commit is contained in:
les
2020-07-08 00:57:28 +02:00
parent 0a51c42fe0
commit 5a5c62efb4
5 changed files with 24 additions and 26 deletions

View File

@@ -3,8 +3,6 @@ const bcrypt = require('bcryptjs')
const { Model, DataTypes } = require('sequelize')
const sequelize = require('./index')
// const Event = require('./event')
class User extends Model {}
User.init({
@@ -36,8 +34,6 @@ User.init({
}
})
// User.hasMany(Event)
User.prototype.comparePassword = async function (pwd) {
if (!this.password) { return false }
const ret = await bcrypt.compare(pwd, this.password)