This commit is contained in:
@@ -90,7 +90,7 @@ pub async fn user_added_file(
|
||||
filename: &str,
|
||||
) -> Result<(), actix_web::Error> {
|
||||
redis
|
||||
.sadd(user_id, filename)
|
||||
.sadd::<&str, &str, ()>(user_id, filename)
|
||||
.await
|
||||
.map_err(|_| ErrorInternalServerError("Failed to save filename in Redis"))?; // Добавляем имя файла в набор пользователя
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user