We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e023b8f commit 48e332dCopy full SHA for 48e332d
rust/src/api/users.rs
@@ -30,7 +30,7 @@ pub async fn get_user(pubkey: String) -> Result<User, ApiError> {
30
let whitenoise = Whitenoise::get_instance()?;
31
let pubkey = PublicKey::parse(&pubkey)?;
32
let user = whitenoise
33
- .find_user_by_pubkey(&pubkey)
+ .find_or_create_user_by_pubkey(&pubkey)
34
.await
35
.map_err(ApiError::from)?;
36
Ok(user.into())
0 commit comments