diff --git a/src/js/repository/mongoClient.js b/src/js/repository/mongoClient.js index c043964..cb20689 100644 --- a/src/js/repository/mongoClient.js +++ b/src/js/repository/mongoClient.js @@ -40,7 +40,7 @@ class MongoClient { } delete(collectionName, entityId, callback) { - this.db.collection(collectionName).deleteOne({_id: mongodb.ObjectId(entityId)}, (error, result) => { + this.db.collection(collectionName).deleteOne({_id: mongodb.ObjectId(entityId)}, (error) => { assert.equal(null, error, `Unable to delete ${collectionName} entity with id ${entityId}: ${error}.`); console.log(`Entity ${collectionName} with id ${entityId} deleted.`); callback(); diff --git a/src/js/repository/repository.js b/src/js/repository/repository.js index 275df5d..06e7320 100644 --- a/src/js/repository/repository.js +++ b/src/js/repository/repository.js @@ -21,6 +21,6 @@ class Repository { delete(entityId, callback) { this.mongoClient.delete(this.collectionName, entityId, callback); } -}; +} module.exports = Repository; \ No newline at end of file