Rework file ID generation

This commit is contained in:
Jeremy Lin committed 2021-05-25 23:15:24 -07:00
1 parent 5fef7983f4
commit c2ef331df9
3 files changed
+15 -5

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ fn post_send_file(data: Data, content_type: &ContentType, headers: Headers, conn
// Create the Send
let mut send = create_send(data.data, headers.user.uuid.clone())?;
let file_id = crate::crypto::generate_file_id();
let file_id = crate::crypto::generate_send_id();
if send.atype != SendType::File as i32 {
err!("Send content is not a file");