Skip to content

Commit

Permalink
Correctly invoke update from CassandraBatchOperations.update.
Browse files Browse the repository at this point in the history
Previously, we've called `insert` instead of `update`.

Closes #1534
  • Loading branch information
mp911de committed Nov 14, 2024
1 parent 40e1bc0 commit 06b1f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ default CassandraBatchOperations update(Object entity, WriteOptions options) {

Assert.notNull(entity, "Entity must not be null");

return insert(Collections.singleton(entity), options);
return update(Collections.singleton(entity), options);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ default ReactiveCassandraBatchOperations update(Object entity, WriteOptions opti

Assert.notNull(entity, "Entity must not be null");

return insert(Collections.singleton(entity), options);
return update(Collections.singleton(entity), options);
}

/**
Expand Down

0 comments on commit 06b1f1a

Please sign in to comment.