senter-mongo-repository
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -123,5 +123,5 @@ const MongoClient = require('mongodb').MongoClient; | ||
if (response.insertedCount !== 1) { | ||
throw Error(`Insert operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
} | ||
// if (response.insertedCount !== 1) { | ||
// throw Error(`Insert operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
// } | ||
@@ -170,5 +170,5 @@ document.id = document._id; | ||
if (response.modifiedCount !== 1) { | ||
throw Error(`Update operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
} | ||
// if (response.modifiedCount !== 1) { | ||
// throw Error(`Update operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
// } | ||
@@ -204,5 +204,5 @@ } catch (err) { | ||
if (response.modifiedCount !== 1) { | ||
throw Error(`Mark deleted operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
} | ||
// if (response.modifiedCount !== 1) { | ||
// throw Error(`Mark deleted operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
// } | ||
} catch (err) { | ||
@@ -231,5 +231,5 @@ console.log(err.stack); | ||
if (response.deletedCount !== 1) { | ||
throw Error(`Delete operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
} | ||
// if (response.deletedCount !== 1) { | ||
// throw Error(`Delete operation on '${this.dbName}'.'${this.collectionName}' failed`); | ||
// } | ||
} catch (err) { | ||
@@ -236,0 +236,0 @@ console.log(err.stack); |
{ | ||
"name": "senter-mongo-repository", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Contain methods to work with mongo db", | ||
@@ -5,0 +5,0 @@ "main": "mongoReposotory.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21411