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
- status
59
+ $set: {
60
+ status
61
+ }
58
62
  });
59
63
  };
60
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstars-services",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "This is the services layer for GoldStars",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {