fix: dumb cache update

This commit is contained in:
mokurin000
2025-08-02 22:08:44 +08:00
parent 3e1a0185fa
commit 0b2bf20e50

View File

@@ -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);