This commit is contained in:
2023-12-13 20:07:16 +03:00
parent dc20f0507a
commit 569df5ec76
2 changed files with 3 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ async fn connect_handler(
},
};
let listener_id = data::get_user_id(&token).await.map_err(|e| {
let listener_id = data::get_id_by_token(&token).await.map_err(|e| {
eprintln!("TOKEN check failed: {}", e);
ErrorUnauthorized("Unauthorized")
})?;