Skip to content

Commit

Permalink
Fix issue with swap commits due to update_write_to_op() returning Rec…
Browse files Browse the repository at this point in the history
…ordWriteOp::Create instead of RecordWriteOp::Update
  • Loading branch information
rudyfraser committed Sep 22, 2024
1 parent 0af1556 commit dd21792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsky-pds/src/repo/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ pub fn create_write_to_op(write: PreparedCreateOrUpdate) -> RecordWriteOp {
pub fn update_write_to_op(write: PreparedCreateOrUpdate) -> RecordWriteOp {
let uri_without_prefix = write.uri.replace("at://", "");
let parts = uri_without_prefix.split("/").collect::<Vec<&str>>();
RecordWriteOp::Create {
RecordWriteOp::Update {
0: RecordCreateOrUpdateOp {
action: WriteOpAction::Update,
collection: parts[1].to_string(),
Expand Down

0 comments on commit dd21792

Please sign in to comment.