Skip to content

Commit 5ca15f2

Browse files
author
hxoliverrumbelow
committed
Filter resources at the database level
1 parent b1e360e commit 5ca15f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongoHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ MongoStore.prototype.find = function(request, callback) {
223223
MongoStore.prototype.create = function(request, newResource, callback) {
224224
var collection = this._db.collection(newResource.type);
225225
var document = MongoStore._toMongoDocument(newResource);
226-
debug("inesrt", JSON.stringify(document));
226+
debug("insert", JSON.stringify(document));
227227
collection.insertOne(document, function(err) {
228228
if (err) return callback(err);
229229
collection.findOne(document, { _id: 0 }, callback);

0 commit comments

Comments
 (0)