cosmetics
This commit is contained in:
@@ -49,11 +49,14 @@ module.exports = cds.service.impl(async () => {
|
|||||||
contact
|
contact
|
||||||
})
|
})
|
||||||
|
|
||||||
const changed = replicas.map(rep => {
|
// Add a tombstone if remote address was deleted
|
||||||
const ext = externals.find(ext => ext.ID === rep.ID)
|
const changed = replicas.map(
|
||||||
if (ext) return ext
|
rep =>
|
||||||
return { ...rep, ...{ tombstone: true } }
|
externals.find(ext => ext.ID === rep.ID) || {
|
||||||
})
|
...rep,
|
||||||
|
...{ tombstone: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
// update local replicas with changes from S/4
|
// update local replicas with changes from S/4
|
||||||
const local = db.transaction(msg) //> using that variant to benefit from bulk runs
|
const local = db.transaction(msg) //> using that variant to benefit from bulk runs
|
||||||
|
|||||||
Reference in New Issue
Block a user