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

query config is required else throws error #130

Closed
rbucker opened this issue Apr 18, 2013 · 1 comment
Closed

query config is required else throws error #130

rbucker opened this issue Apr 18, 2013 · 1 comment

Comments

@rbucker
Copy link

rbucker commented Apr 18, 2013

The following code snippet generates an error: [TypeError: Cannot call method 'hasOwnProperty' of undefined]

orm.connect({database:'ultimet.db', protocol:'sqlite'}, function (err, db) {
   if (err) {
       console.error(err);
    } else {
        console.log('connected to the DB');
    }
});

If I include this in the connect() options then it works fine.

query:{debug:true}
@dresende
Copy link
Owner

Thank you for posting. Fix coming right out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants