Condition Node + MySQL: Cannot read property 'get' of undefined

Hello everyone!

On my update user page, I want to update the password field only if the user changes the password. For this, I used “condition” on update query:

When save, I have this error message:

{status: "500", message: "Cannot read property 'get' of undefined",…}
message: "Cannot read property 'get' of undefined"
stack: "TypeError: Cannot read property 'get' of undefined↵    at value (/opt/node_app/lib/core/parser.js:605:51)↵    at /opt/node_app/lib/core/parser.js:685:21↵    at parser (/opt/node_app/lib/core/parser.js:351:19)↵    at Object.parseValue (/opt/node_app/lib/core/parser.js:716:24)↵    at /opt/node_app/lib/core/app.js:322:37↵    at Array.filter (<anonymous>)↵    at /opt/node_app/lib/core/app.js:320:39↵    at Array.forEach (<anonymous>)↵    at App.parseSQL (/opt/node_app/lib/core/app.js:318:30)↵    at App.update (/opt/node_app/lib/modules/dbupdater.js:31:26)"
status: "500"

Am I doing something wrong, is it a bug or am I missing some configuration?


Anyone? :frowning:

Working on the update for today, you may test the following file. Replace it in lib/core. (2.5 KB)

It will also be included in todays update.

1 Like

Thanks @patrick!

This topic was automatically closed after 30 hours. New replies are no longer allowed.