From e36834baa325e792b158dd74ee7f84ff8e9bc99f Mon Sep 17 00:00:00 2001 From: Michael Reiche <48999328+mikereiche@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:42:26 -0800 Subject: [PATCH] Pass cas from oneEntity call to one by id. (#1689) Closes #1388. --- .../data/couchbase/core/ReactiveRemoveByIdOperationSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByIdOperationSupport.java b/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByIdOperationSupport.java index 2e7427f2..7e45b2cf 100644 --- a/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByIdOperationSupport.java +++ b/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByIdOperationSupport.java @@ -157,7 +157,7 @@ public class ReactiveRemoveByIdOperationSupport implements ReactiveRemoveByIdOpe public Mono 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