sumba 2.33.2 → 2.33.3
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/extend/bajo/hook.js +1 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
package/extend/bajo/hook.js
CHANGED
|
@@ -127,6 +127,7 @@ async function rebuildFilter (model, filter = {}, options = {}) {
|
|
|
127
127
|
const fields = keys(req.getSetting('sumba:modelGuard', {}))
|
|
128
128
|
const results = []
|
|
129
129
|
for (const field of fields) {
|
|
130
|
+
if (!model.hasProperty(field)) continue
|
|
130
131
|
const inSetting = filterModelFromSetting.call(this, { model, field, options })
|
|
131
132
|
if (inSetting.results.length > 0) results.push(...inSetting.results)
|
|
132
133
|
}
|
package/package.json
CHANGED