mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Fixed service template to add the capital letter and fixed issue that was preventing the usage of mongoose
This commit is contained in:
parent
872dfebc09
commit
006d951e34
@ -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