mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
Merge pull request #2075 from strapi/update/2071
Fix typo update service on bookshelf
This commit is contained in:
commit
7ceeed4d10
@ -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 }));
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user