Fix typo update bookshelf service

This commit is contained in:
Jim LAURIE 2018-10-04 17:17:25 +02:00
parent 6009e3278c
commit 870b31ce5c

View File

@ -120,7 +120,7 @@ module.exports = {
const data = _.omit(values, <%= globalID %>.associations.map(ast => ast.alias));
// Create entry with no-relational data.
const entry = <%= globalID %>.forge(params).save(data, { path: true });
const entry = <%= globalID %>.forge(params).save(data);
// Create relational data and return the entry.
return <%= globalID %>.updateRelations(Object.assign(params, { values: relations }));