@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,
|
|
101
|
+
var _a, where, params, idCheck, paramsCheck, result;
|
|
102
102
|
return __generator(this, function (_b) {
|
|
103
|
-
_a = args || {},
|
|
104
|
-
idCheck = (0, exports.
|
|
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