Merge pull request #255 from lbryio/sequelize-operator-alias
switch to sequelize operator alias
This commit is contained in:
commit
3dcc714a13
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT }) => {
|
|||
where: {
|
||||
name : channelName,
|
||||
claimId: {
|
||||
[sequelize.Op.like]: `${channelId}%`,
|
||||
$like: `${channelId}%`,
|
||||
},
|
||||
},
|
||||
order: [['height', 'ASC']],
|
||||
|
|
|
@ -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']],
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue