mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Apply options on Mongoose instance
This commit is contained in:
parent
38da18aec5
commit
3d7dacef70
@ -88,7 +88,7 @@ module.exports = function (strapi) {
|
||||
return cb(errMsg);
|
||||
}
|
||||
|
||||
Object.keys(options, key => instance.set(key, options[key]));
|
||||
Object.keys(options).map(key => instance.set(key, options[key]));
|
||||
|
||||
const mountModels = (models, target, plugin = false) => {
|
||||
if (!target) return;
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"configurable": false
|
||||
},
|
||||
},
|
||||
"blocked": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
@ -48,6 +48,10 @@
|
||||
"via": "users",
|
||||
"plugin": "users-permissions",
|
||||
"configurable": false
|
||||
},
|
||||
"products": {
|
||||
"collection": "product",
|
||||
"via": "users"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user