From 8524be2c93c7611c4c1ef2f251ac3145360d2355 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Wed, 8 Nov 2017 18:55:47 -0800 Subject: [PATCH] switched to $ operator alias --- models/certificate.js | 2 +- models/claim.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/certificate.js b/models/certificate.js index 1a79c72b..19ad8b39 100644 --- a/models/certificate.js +++ b/models/certificate.js @@ -130,7 +130,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT }) => { where: { name : channelName, claimId: { - [sequelize.Op.like]: `${channelId}%`, + $like: `${channelId}%`, }, }, order: [['height', 'ASC']], diff --git a/models/claim.js b/models/claim.js index 3ebd3adb..b71fabc4 100644 --- a/models/claim.js +++ b/models/claim.js @@ -234,7 +234,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, ARRAY, DECIMAL, D where: { name, claimId: { - [sequelize.Op.like]: `${shortId}%`, + $like: `${shortId}%`, }}, order: [['height', 'ASC']], })