@smartsoft001/trans-shell-nestjs 2.97.0 → 2.99.0
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.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -383,7 +383,7 @@ var CrudService = class {
|
|
|
383
383
|
if (!isModel(item))
|
|
384
384
|
return;
|
|
385
385
|
const keys = Object.keys(item);
|
|
386
|
-
const array = getInvalidFields(item, "update", permissions)
|
|
386
|
+
const array = getInvalidFields(item, "update", permissions)?.filter(
|
|
387
387
|
(invalidField) => keys.some((key) => key === invalidField)
|
|
388
388
|
);
|
|
389
389
|
if (array.length) {
|