You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I updated couchbase package dependency to lattest version (2.1.6), so I could connect to couchbase 4.1,
However, I am having some trouble, for any findOne(query, cb) operation, the expected result object is returned within an other object under a property labeled with the bucket's name
The returned value for myUser is: { test: { docType: 'User', email: '[email protected]', firstname: 'abc', id: '2a952453-e982-489c-9c39-883ee3e01a71', lastname: 'abc', password: '$2a$10$qkl23WhsrL3Z0kmtsfKqZO4FaQQUh6NUvkpbnrUL.6LwkChRyUj82', username: 'abc' } }
where test is the name of the bucket.
I found this error while debugging the login operation from the default user model. The hasPassword method failed because the "this.password" was undefined, since the password was actualy under this.test.password", but this is not how it should be.
Just to mention it, if I try an other datasource this works just fine.
Any suggestions on how to fix this?
Regards,
Luis
The text was updated successfully, but these errors were encountered:
Hi,
First of all, I updated couchbase package dependency to lattest version (2.1.6), so I could connect to couchbase 4.1,
However, I am having some trouble, for any findOne(query, cb) operation, the expected result object is returned within an other object under a property labeled with the bucket's name
For example, if I call for:
app.models.User.findOne({email:"[email protected]"}, function(err, myUser){...}
The returned value for
myUser
is:{ test: { docType: 'User', email: '[email protected]', firstname: 'abc', id: '2a952453-e982-489c-9c39-883ee3e01a71', lastname: 'abc', password: '$2a$10$qkl23WhsrL3Z0kmtsfKqZO4FaQQUh6NUvkpbnrUL.6LwkChRyUj82', username: 'abc' } }
where
test
is the name of the bucket.I found this error while debugging the login operation from the default user model. The hasPassword method failed because the "this.password" was undefined, since the password was actualy under this.test.password", but this is not how it should be.
Just to mention it, if I try an other datasource this works just fine.
Any suggestions on how to fix this?
Regards,
Luis
The text was updated successfully, but these errors were encountered: