Fixed service template to add the capital letter and fixed issue that was preventing the usage of mongoose

This commit is contained in:
André Gonçalves 2017-02-03 16:36:59 +00:00
parent 872dfebc09
commit 006d951e34
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module.exports = {
*/
add: (values) => {
return <%= humanizeSubId || humanizeId %>.create(values);
return <%= globalID %>.create(values);
},
/**

View File

@ -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();
}