diff --git a/src/main.rs b/src/main.rs index 597a7b6..4f28503 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,9 +72,14 @@ async fn create_first_chat(author_id: i32) -> Vec { let _: () = redis::pipe() .atomic() - .sadd_multiple(format!("chats_by_author/{}", author_id), &members) + .cmd("SADD") + .arg(format!("chats_by_author/{}", author_id)) + .arg(&chat_id) + .ignore() .set(format!("chats/{}", chat_id), chat.to_string()) + .ignore() .set(format!("chats/{}/next_message_id", chat_id), "0") + .ignore() .query_async(&mut con) .await .unwrap();