This commit is contained in:
D065023
2019-12-16 21:05:28 +01:00
parent f89acc00dd
commit dc8e8c55df

View File

@@ -15,10 +15,10 @@ const queriesToUpdateDifferences = (entity, ownEntries, otherEntries) =>
) )
) )
if (remoteAddress) { if (remoteAddress) {
const diff = diff(ownEntry, remoteAddress) const differences = diff(ownEntry, remoteAddress)
if (Object.keys(diff).length) { if (Object.keys(diff).length) {
return UPDATE(entity) return UPDATE(entity)
.set(diff) .set(differences)
.where({ .where({
BusinessPartner: ownEntry.BusinessPartner, BusinessPartner: ownEntry.BusinessPartner,
AddressID: ownEntry.AddressID AddressID: ownEntry.AddressID