Open muratatak77 opened 9 years ago
I've exactly the same problem. I think in mongodb-backend.js, the cb is called twice:
// update document
collection.update(updateParams, {$set: doc}, {safe: true, upsert: true}, function (err) {
if (err instanceof Error) return cb(err);
cb(undefined);
});
// Create index
collection.ensureIndex({_bucketname: 1, key: 1}, function (err) {
if (err instanceof Error) {
return cb(err);
} else {
cb(undefined);
}
});
this should become:
// Create index
collection.ensureIndex({_bucketname: 1, key: 1}, function (err) {
if (err instanceof Error) {
return cb(err);
} else {
// update document
collection.update(updateParams, {$set: doc}, {safe: true, upsert: true}, function (err) {
if (err instanceof Error) return cb(err);
cb(undefined);
});
}
});
please merge the pull request 140...this bug is critical... :(
Yes. it works. Thanks.
@gitawego appreciate, but not feeling good with the console.log on Line: 36
@lionng429 this is already fixed in master. see pull request 140, don't need to merge mine.
Shouldn't this issue be closed now ?
When it works app, created acl collections in MongoDb. But , Error occured acl.allow() method. I get errors.
ERRORS :