switched to $ operator alias

This commit is contained in:
bill bittner 2017-11-08 18:55:47 -08:00
parent c6d1988bb9
commit 8524be2c93
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT }) => {
where: { where: {
name : channelName, name : channelName,
claimId: { claimId: {
[sequelize.Op.like]: `${channelId}%`, $like: `${channelId}%`,
}, },
}, },
order: [['height', 'ASC']], order: [['height', 'ASC']],

View file

@ -234,7 +234,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, ARRAY, DECIMAL, D
where: { where: {
name, name,
claimId: { claimId: {
[sequelize.Op.like]: `${shortId}%`, $like: `${shortId}%`,
}}, }},
order: [['height', 'ASC']], order: [['height', 'ASC']],
}) })