removed symbol based operators

This commit is contained in:
bill bittner 2018-05-14 15:23:50 -07:00
parent b37f03ca9d
commit efd2f3bf23
3 changed files with 6 additions and 3 deletions

View file

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

View file

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

View file

@ -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