Skip to content

Commit 5a4243e

Browse files
committed
fix(developer): lol
1 parent dc3bdc9 commit 5a4243e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoints/developers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub async fn update_profile(
207207
.await
208208
.or(Err(ApiError::DbAcquireError))?;
209209

210-
if json.display_name.chars().all(char::is_alphanumeric) {
210+
if !json.display_name.chars().all(char::is_alphanumeric) {
211211
return Err(ApiError::BadRequest(
212212
"Display name must contain only alphanumeric characters".into(),
213213
));

0 commit comments

Comments
 (0)