mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 00:29:51 +00:00
Merge branch 'alpha.4' of github.com:strapi/strapi into alpha.4
This commit is contained in:
commit
dff292593e
@ -38,7 +38,7 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
add: (values) => {
|
add: (values) => {
|
||||||
return <%= humanizeSubId || humanizeId %>.create(values);
|
return <%= globalID %>.create(values);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -41,7 +41,7 @@ module.exports = function (strapi) {
|
|||||||
let globalName;
|
let globalName;
|
||||||
|
|
||||||
// Return callback if there is no model
|
// Return callback if there is no model
|
||||||
if (_.isEmpty(strapi.models) || _.pickBy(strapi.config.connections, {connector: 'strapi-mongoose'})) {
|
if (_.isEmpty(strapi.models) || !_.pickBy(strapi.config.connections, {connector: 'strapi-mongoose'})) {
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user