This commit is contained in:
1 parent
6e9485c2f5
commit
fae16a0184
21 files changed
+35
-40
No files matched your search
@@ -65,4 +65,4 @@ pub(crate) async fn load_game_option_preferences(
|
||||
pool: &SqlitePool,
|
||||
) -> crate::Result<HashMap<String, StoredPreference>> {
|
||||
Ok(sqlx::query("SELECT option_id, enabled, revision FROM synced_game_option_preferences").fetch_all(pool).await?.into_iter().map(|r| { let option_id: String = r.get("option_id"); let enabled: bool = r.get("enabled"); let revision: i64 = r.get("revision"); (option_id, StoredPreference { enabled, revision: revision.max(0) as u64 }) }).collect())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user