mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +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) => {
|
||||
return <%= humanizeSubId || humanizeId %>.create(values);
|
||||
return <%= globalID %>.create(values);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@ -41,7 +41,7 @@ module.exports = function (strapi) {
|
||||
let globalName;
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user