adonis-lucid-mongodb
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "lint": "standard", |
@@ -158,2 +158,19 @@ 'use strict' | ||
/** | ||
* delete penalty | ||
* | ||
* @method remove | ||
* | ||
* @param {Object} target | ||
* @return {Promise} | ||
* | ||
* @public | ||
*/ | ||
methods.remove = function (target) { | ||
return function * (values) { | ||
yield target.connect() | ||
return yield target.modelQueryBuilder.remove() | ||
} | ||
} | ||
/** | ||
* returns the first record from data collection | ||
@@ -160,0 +177,0 @@ * |
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
230653
8181