fixed
This commit is contained in:
@@ -19,10 +19,12 @@ const queriesToUpdateDifferences = (entity, ownEntries, otherEntries) =>
|
|||||||
if (Object.keys(diff).length) {
|
if (Object.keys(diff).length) {
|
||||||
return UPDATE(entity)
|
return UPDATE(entity)
|
||||||
.set(differences)
|
.set(differences)
|
||||||
.where({
|
.where(
|
||||||
BusinessPartner: ownEntry.BusinessPartner,
|
Object.keys(entity.keys).reduce(
|
||||||
AddressID: ownEntry.AddressID
|
(res, curr) => (res[curr] = ownEntry[curr]) && res,
|
||||||
})
|
{}
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user