This commit is contained in:
Floris Bruynooghe
2023-03-11 12:32:33 +01:00
committed by link2xt
parent 0079cd4766
commit 4bf38c0e29

View File

@@ -1325,14 +1325,13 @@ impl CommandApi {
passphrase: Option<String>, passphrase: Option<String>,
) -> Result<()> { ) -> Result<()> {
let ctx = self.get_context(account_id).await?; let ctx = self.get_context(account_id).await?;
let result = imex::imex( imex::imex(
&ctx, &ctx,
imex::ImexMode::ExportBackup, imex::ImexMode::ExportBackup,
destination.as_ref(), destination.as_ref(),
passphrase, passphrase,
) )
.await; .await
result
} }
async fn import_backup( async fn import_backup(