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 8e9d9dc commit 1ec6230
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 @@ -159,7 +159,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 @@ -210,7 +210,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 1ec6230

Please sign in to comment.