From 773f17e52462f00b1c6fb0a976013905f8b6aa21 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:51:53 +0800 Subject: [PATCH] fix: import zip without root dir (#898) * fix: import notion zip file that do not have root dir * fix: compile --- services/appflowy-worker/src/import_worker/worker.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/appflowy-worker/src/import_worker/worker.rs b/services/appflowy-worker/src/import_worker/worker.rs index c67f92e11..4e4aa0816 100644 --- a/services/appflowy-worker/src/import_worker/worker.rs +++ b/services/appflowy-worker/src/import_worker/worker.rs @@ -417,7 +417,12 @@ async fn download_and_unzip_file( ImportError::Internal(anyhow!("Failed to set permissions for temp dir: {:?}", err)) })?; - let unzip_file = unzip_stream(zip_reader.inner, output_file_path).await?; + let unzip_file = unzip_stream( + zip_reader.inner, + output_file_path, + Some(import_task.workspace_name.clone()), + ) + .await?; Ok(unzip_file.unzip_dir_path) }