goldstars-services 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -50,11 +50,15 @@ var updateBike = (queryParams, paramsToUpdate) => {
|
|
|
50
50
|
* @param {Object} queryParams
|
|
51
51
|
* @param {String} status
|
|
52
52
|
* @returns Promise<BikeModel>
|
|
53
|
-
*
|
|
54
53
|
*/
|
|
55
54
|
var changeMasiveStatus = (queryParams, status) => {
|
|
55
|
+
if (!status) {
|
|
56
|
+
throw new Error("Status is required");
|
|
57
|
+
}
|
|
56
58
|
return _bike.default.updateMany(queryParams, {
|
|
57
|
-
|
|
59
|
+
$set: {
|
|
60
|
+
status
|
|
61
|
+
}
|
|
58
62
|
});
|
|
59
63
|
};
|
|
60
64
|
|