From d42ed445d80b4fb92f8caf8d4d8ccb8dd4402267 Mon Sep 17 00:00:00 2001 From: code002lover Date: Mon, 12 Jan 2026 10:32:57 +0100 Subject: [PATCH] fix title editing --- backend/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 0142a6f..d39854b 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -121,7 +121,10 @@ async fn update_game( let mut r_existing = None; - if let Some(existing) = games.iter_mut().find(|g| g.title == game.title) { + if let Some(existing) = games.iter_mut().find(|g| { + (g.remote_id == game.remote_id && g.source == game.source) || (g.title == game.title) + }) { + existing.title = game.title.clone(); existing.source = game.source; existing.min_players = game.min_players; existing.max_players = game.max_players;