fix accidentally forcing nex-accounts to be fully created before using nex provider
All checks were successful
Build and Test / account (push) Successful in 3m53s

This commit is contained in:
Maple Nebel 2026-07-07 08:13:42 +02:00
commit c47a3fb5fc
3 changed files with 17 additions and 14 deletions

View file

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