removed symbol based operators
This commit is contained in:
parent
b37f03ca9d
commit
efd2f3bf23
3 changed files with 6 additions and 3 deletions
|
@ -158,7 +158,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, DECIMAL }) => {
|
|||
where: {
|
||||
name : channelName,
|
||||
claimId: {
|
||||
$like: `${channelClaimId}%`,
|
||||
[sequelize.Op.like]: `${channelClaimId}%`,
|
||||
},
|
||||
},
|
||||
order: [['height', 'ASC']],
|
||||
|
|
|
@ -303,7 +303,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, DECIMAL }) => {
|
|||
where: {
|
||||
name,
|
||||
claimId: {
|
||||
$like: `${shortId}%`,
|
||||
[sequelize.Op.like]: `${shortId}%`,
|
||||
}},
|
||||
order: [['height', 'ASC']],
|
||||
})
|
||||
|
|
|
@ -15,7 +15,9 @@ const {database, username, password} = require('../../config/mysqlConfig.js');
|
|||
const sequelize = new Sequelize(database, username, password, {
|
||||
host : 'localhost',
|
||||
dialect : 'mysql',
|
||||
dialectOptions: {decimalNumbers: true},
|
||||
dialectOptions: {
|
||||
decimalNumbers: true
|
||||
},
|
||||
logging : false,
|
||||
pool : {
|
||||
max : 5,
|
||||
|
@ -23,6 +25,7 @@ const sequelize = new Sequelize(database, username, password, {
|
|||
idle : 10000,
|
||||
acquire: 10000,
|
||||
},
|
||||
operatorsAliases: false,
|
||||
});
|
||||
|
||||
// establish mysql connection
|
||||
|
|
Loading…
Reference in a new issue