Pass cas from oneEntity call to one by id. (#1689)

Closes #1388.
This commit is contained in:
Michael Reiche
2023-03-09 09:42:26 -08:00
committed by mikereiche
parent 89e9b90dda
commit e36834baa3

View File

@@ -157,7 +157,7 @@ public class ReactiveRemoveByIdOperationSupport implements ReactiveRemoveByIdOpe
public Mono<RemoveResult> oneEntity(Object entity) {
ReactiveRemoveByIdSupport op = new ReactiveRemoveByIdSupport(template, domainType, scope, collection, options,
persistTo, replicateTo, durabilityLevel, template.support().getCas(entity));
return op.one(template.support().getId(entity).toString());
return op.withCas(template.support().getCas(entity)).one(template.support().getId(entity).toString());
}
@Override