@@ -6,7 +6,7 @@ use crate::{
6
6
} ;
7
7
use clap:: Subcommand ;
8
8
use sos_account:: { Account , FolderCreate } ;
9
- use sos_client_storage:: NewFolderOptions ;
9
+ use sos_client_storage:: { ClientFolderStorage , NewFolderOptions } ;
10
10
use sos_migrate:: { export_authenticator, import_authenticator} ;
11
11
use sos_sdk:: prelude:: { AccountRef , VaultFlags } ;
12
12
use std:: path:: PathBuf ;
@@ -59,7 +59,7 @@ pub async fn run(cmd: Command) -> Result<()> {
59
59
60
60
let storage = owner. storage ( ) . await ;
61
61
let storage = storage. read ( ) . await ;
62
- let folder = storage. cache ( ) . get ( authenticator. id ( ) ) . unwrap ( ) ;
62
+ let folder = storage. folders ( ) . get ( authenticator. id ( ) ) . unwrap ( ) ;
63
63
64
64
export_authenticator ( file, folder. keeper ( ) , qr_codes) . await ?;
65
65
success ( "authenticator TOTP secrets exported" ) ;
@@ -108,7 +108,7 @@ pub async fn run(cmd: Command) -> Result<()> {
108
108
let storage = owner. storage ( ) . await ;
109
109
let mut storage = storage. write ( ) . await ;
110
110
let folder =
111
- storage. cache_mut ( ) . get_mut ( folder. id ( ) ) . unwrap ( ) ;
111
+ storage. folders_mut ( ) . get_mut ( folder. id ( ) ) . unwrap ( ) ;
112
112
import_authenticator ( file, folder. keeper_mut ( ) ) . await ?;
113
113
success ( "authenticator TOTP secrets imported" ) ;
114
114
}
0 commit comments