diff --git a/sdgb-cli/src/utils/helpers/mod.rs b/sdgb-cli/src/utils/helpers/mod.rs index d2aea5c..51daa76 100644 --- a/sdgb-cli/src/utils/helpers/mod.rs +++ b/sdgb-cli/src/utils/helpers/mod.rs @@ -125,11 +125,9 @@ where Ok(resp) => { use sdgb_api::bincode::encode_to_vec; - use crate::cache::PLAYERS; - info!("fetched: {user_id}"); - if let Ok(mut table) = cache::open_table(&write, PLAYERS) + if let Ok(mut table) = cache::open_table(&write, definition) && let Ok(encoded) = encode_to_vec(resp, config) { _ = table.insert(resp.get_uid(), encoded);