Skip to content

Commit

Permalink
fix: import zip without root dir (#898)
Browse files Browse the repository at this point in the history
* fix: import notion zip file that do not have root dir

* fix: compile
  • Loading branch information
appflowy authored Oct 17, 2024
1 parent 6c9ab2b commit 773f17e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion services/appflowy-worker/src/import_worker/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 773f17e

Please sign in to comment.