Skip to content

Commit

Permalink
chore: update upload file url
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Oct 10, 2024
1 parent 2934851 commit 83c8532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collab-importer/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tokio::io::{AsyncReadExt, BufReader};
use zip::ZipArchive;

pub fn upload_file_url(host: &str, workspace_id: &str, object_id: &str, file_id: &str) -> String {
format!("{host}/{workspace_id}/v1/blob/{object_id}/{file_id}",)
format!("{host}/api/file_storage/{workspace_id}/v1/blob/{object_id}/{file_id}",)
}

pub struct FileId;
Expand Down
2 changes: 1 addition & 1 deletion collab-importer/tests/notion_test/import_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async fn assert_blog_post(host: &str, workspace_id: &str, root_view: &NotionPage
"EIj9Z3yj8Gw8UW60U8CLXx7ulckEs5Eu84LCFddCXII=.jpg",
]
.into_iter()
.map(|s| format!("{host}/{workspace_id}/v1/blob/{object_id}/{s}"))
.map(|s| format!("{host}/api/file_storage/{workspace_id}/v1/blob/{object_id}/{s}"))
.collect::<Vec<String>>();

let (document, _) = root_view.as_document().await.unwrap();
Expand Down

0 comments on commit 83c8532

Please sign in to comment.