Merge pull request #2075 from strapi/update/2071

Fix typo update service on bookshelf
This commit is contained in:
Jim LAURIE 2018-10-08 11:19:36 +02:00 committed by GitHub
commit 7ceeed4d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

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

View File

@ -513,8 +513,6 @@ module.exports = function(strapi) {
if (existTable) {
await StrapiConfigs.forge({id: existTable.id}).save({
value: JSON.stringify(attributes)
}, {
path: true
});
} else {
await StrapiConfigs.forge({