use replace for list updates #430

Merged
jessopb merged 1 commit from fix-colUpdateReplace into master 2021-09-11 19:18:41 +02:00
2 changed files with 4 additions and 1 deletions

3
dist/bundle.es.js vendored
View file

@ -4520,7 +4520,8 @@ function doCollectionPublishUpdate(options, isBackgroundUpdate) {
locations: [], locations: [],
blocking: true, blocking: true,
claim_id: options.claim_id, claim_id: options.claim_id,
clear_claims: true clear_claims: true,
replace: true
}; };
if (isBackgroundUpdate && updateParams.claim_id) { if (isBackgroundUpdate && updateParams.claim_id) {

View file

@ -859,6 +859,7 @@ export function doCollectionPublishUpdate(
languages?: Array<string>, languages?: Array<string>,
claims?: Array<string>, claims?: Array<string>,
clear_claims: boolean, clear_claims: boolean,
replace: boolean,
} = isBackgroundUpdate } = isBackgroundUpdate
? { ? {
blocking: true, blocking: true,
@ -876,6 +877,7 @@ export function doCollectionPublishUpdate(
blocking: true, blocking: true,
claim_id: options.claim_id, claim_id: options.claim_id,
clear_claims: true, clear_claims: true,
replace: true,
}; };
if (isBackgroundUpdate && updateParams.claim_id) { if (isBackgroundUpdate && updateParams.claim_id) {