From c2962505115563ad1510e8116f3b362887cac71f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Oct 2017 16:59:02 +0200 Subject: Remove sequelize deprecated operators --- server/models/user/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/user/user.ts') diff --git a/server/models/user/user.ts b/server/models/user/user.ts index f8598c40f..074c9c121 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts @@ -271,7 +271,7 @@ loadByUsernameOrEmail = function (username: string, email: string) { const query = { include: [ { model: User['sequelize'].models.Author, required: true } ], where: { - $or: [ { username }, { email } ] + [Sequelize.Op.or]: [ { username }, { email } ] } } -- cgit v1.2.3