switch to sequelize operator alias #255

Merged
bones7242 merged 1 commit from sequelize-operator-alias into master 2017-11-09 03:57:02 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 8524be2c93 - Show all commits

View file

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

View file

@ -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']],
})