@sdflc/backend-helpers 1.0.47 → 1.0.48

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.
@@ -98,10 +98,10 @@ var validateUpdate = function (_a) {
98
98
  var rules = _a.rules;
99
99
  // eslint-disable-next-line
100
100
  return function (args, opt) { return __awaiter(void 0, void 0, void 0, function () {
101
- var _a, id, params, idCheck, paramsCheck, result;
101
+ var _a, where, params, idCheck, paramsCheck, result;
102
102
  return __generator(this, function (_b) {
103
- _a = args || {}, id = _a.id, params = _a.params;
104
- idCheck = (0, exports.shouldHaveId)(id)[0];
103
+ _a = args || {}, where = _a.where, params = _a.params;
104
+ idCheck = (0, exports.shouldHaveParams)(where)[0];
105
105
  if (idCheck !== true) {
106
106
  return [2 /*return*/, [idCheck, {}]];
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",