switch to sequelize operator alias #255
2 changed files with 2 additions and 2 deletions
|
@ -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']],
|
||||||
|
|
|
@ -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']],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue