fix: import zip without root dir (#898)

* fix: import notion zip file that do not have root dir

* fix: compile
This commit is contained in:
Nathan.fooo 2024-10-18 00:51:53 +08:00 committed by GitHub
parent 6c9ab2ba7e
commit 773f17e524
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -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)
}