Compare commits
1 Commits
d9633e519f
...
13de4d074d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13de4d074d |
@ -121,10 +121,7 @@ async fn update_game(
|
||||
|
||||
let mut r_existing = None;
|
||||
|
||||
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();
|
||||
if let Some(existing) = games.iter_mut().find(|g| g.title == game.title) {
|
||||
existing.source = game.source;
|
||||
existing.min_players = game.min_players;
|
||||
existing.max_players = game.max_players;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user