mysql - Updating error in sequelize -


what kind of error this?

unhandled rejection sequelizedatabaseerror: er_empty_query: query empty     @ query.formaterror (node_modules/sequelize/lib/dialects/mysql/query.js:159:14)     @ query._callback (node_modules/sequelize/lib/dialects/mysql/query.js:35:21)     @ query.sequence.end (node_modules/mysql/lib/protocol/sequences/sequence.js:96:24)     @ query.errorpacket (node_modules/mysql/lib/protocol/sequences/query.js:94:8)     @ protocol._parsepacket (node_modules/mysql/lib/protocol/protocol.js:274:23)     @ parser.write (node_modules/mysql/lib/protocol/parser.js:77:12)     @ protocol.write (node_modules/mysql/lib/protocol/protocol.js:39:16)     @ socket.<anonymous> (node_modules/mysql/lib/connection.js:96:28)     @ socket.emit (events.js:107:17)     @ readableaddchunk (_stream_readable.js:163:16)     @ socket.readable.push (_stream_readable.js:126:10)     @ tcp.onread (net.js:538:20) 

i'm trying update entity following code:

db.account.update({                     'post_id': data.id                 }, {                   where: { id: account.id }                 })                 .spread(account => {                    next();                 }); 

but doesn't work. idea?

the same issue facing , after lot of debugging found out silly mistake. reason me in mysql added column , forgot add same sequelize model representing same table case suggest double check post_id present in account sequelize model.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -