forked from spacebar/account
fix accidentally forcing nex-accounts to be fully created before using nex provider
This commit is contained in:
parent
4970f09db5
commit
c47a3fb5fc
3 changed files with 17 additions and 14 deletions
|
|
@ -114,7 +114,10 @@ pub async fn get_nex_token(
|
|||
let host = host.ip();
|
||||
|
||||
let mut client = nex_account::grpc_client().await.unwrap();
|
||||
let Ok(key) = client.get_nex_key_by_pid(Pid { pid: auth.pid }).await else {
|
||||
let Ok(key) = client
|
||||
.get_nex_key_by_pid_maybe_staged(Pid { pid: auth.pid })
|
||||
.await
|
||||
else {
|
||||
println!("account does not exist on nex-account server");
|
||||
return Err(Some(SERVER_ERROR));
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue