Merge pull request #255 from lbryio/sequelize-operator-alias

switch to sequelize operator alias
This commit is contained in:
Bill Bittner 2017-11-08 18:57:02 -08:00 committed by GitHub
commit 3dcc714a13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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']],
}) })