Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Model.update Postgres #27

Closed
peihnav opened this issue Jun 17, 2014 · 0 comments · Fixed by #29
Closed

Error when using Model.update Postgres #27

peihnav opened this issue Jun 17, 2014 · 0 comments · Fixed by #29

Comments

@peihnav
Copy link

peihnav commented Jun 17, 2014

I got this message when call the method update of Model:

E:\projects\lounge-api\node_modules\caminte\lib\adapters\postgres.js:145
if (props[key] || key === 'id') {
^
ReferenceError: props is not defined
at E:\projects\lounge-api\node_modules\caminte\lib\adapters\postgres.js:145:
13
at Array.forEach (native)
at PG.update (E:\projects\lounge-api\node_modules\caminte\lib\adapters\postg
res.js:143:23)
at Function.update (E:\projects\lounge-api\node_modules\caminte\lib\abstract
-class.js:1018:29)
at E:\projects\lounge-api\app\controllers\UsersController.js:39:26
at E:\projects\lounge-api\node_modules\caminte\lib\abstract-class.js:542:17
at E:\projects\lounge-api\node_modules\caminte\lib\abstract-class.js:503:17
at PG. (E:\projects\lounge-api\node_modules\caminte\lib\adapters
postgres.js:191:13)
at null.callback (E:\projects\lounge-api\node_modules\caminte\lib\adapters\p
ostgres.js:56:9)
at Query.handleReadyForQuery (E:\projects\lounge-api\node_modules\pg\lib\que
ry.js:82:10)

It seems to be missing the definition of props.

Please check and fix it
Regards

biggora added a commit that referenced this issue Jun 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant