fix: change function paramater name to match function name

This commit is contained in:
JustTemmie 2025-07-13 16:21:07 +02:00
parent d775723b7b
commit 384f5e404f
Signed by: justtemmie
SSH key fingerprint: SHA256:nBO+OwpTkd8LYhe38PIqdxmDvkIg9Vw2EbrRZM97dkU

View file

@ -170,12 +170,12 @@ pub async fn user_uuid_from_identifier(
pub async fn user_uuid_from_username(
conn: &mut Conn,
identifier: &String,
username: &String,
) -> Result<Uuid, Error> {
if USERNAME_REGEX.is_match(identifier) {
if USERNAME_REGEX.is_match(username) {
use users::dsl;
let user_uuid = dsl::users
.filter(dsl::username.eq(identifier))
.filter(dsl::username.eq(username))
.select(dsl::uuid)
.get_result(conn)
.await?;