mirror of
https://github.com/strapi/strapi.git
synced 2025-10-15 10:04:32 +00:00
Merge pull request #4645 from Froelund/patch-7
Use the id of entry to update relations
This commit is contained in:
commit
6a9df0fcde
@ -134,7 +134,7 @@ module.exports = function createQueryBuilder({ model, modelKey, strapi }) {
|
|||||||
|
|
||||||
if (Object.keys(relations).length > 0) {
|
if (Object.keys(relations).length > 0) {
|
||||||
return model.updateRelations(
|
return model.updateRelations(
|
||||||
Object.assign(params, { values: relations }),
|
{ id: entry.id, values: relations },
|
||||||
{ transacting: trx }
|
{ transacting: trx }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user