Skip to content

Commit

Permalink
πŸ› Use upload id on default.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Aug 27, 2024
1 parent de88888 commit 051d6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database_driver_native/src/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl BucketStore for ProxyBucket {
let data = upload.concat();
let data = Bytes::from(data);

let key = final_data_key.unwrap_or_else(|| uuid::Uuid::new_v4().to_string());
let key = final_data_key.unwrap_or_else(|| upload_id.to_string());
check_key(&key)?;

self.set(key.clone(), data.clone()).await?;
Expand Down

0 comments on commit 051d6d2

Please sign in to comment.