diff --git a/src/store/id_store.rs b/src/store/id_store.rs index 752379d..cc94a78 100644 --- a/src/store/id_store.rs +++ b/src/store/id_store.rs @@ -41,12 +41,12 @@ pub struct IDStore { impl IDStore { pub async fn new_from_storage(mut persistence_layer: T) -> Self { - // let mapping = match persistence_layer.load_mapping().await { - // Some(map) => map, - // None => IDMapping::new(), - // }; + let mapping = match persistence_layer.load_mapping().await { + Some(map) => map, + None => IDMapping::new(), + }; - let current_date: Day = Day::new(0); + let current_date: Day = Day::new(1); let day = persistence_layer .load_day(current_date) @@ -55,7 +55,7 @@ impl IDStore { Self { current_day: day, - mapping: IDMapping::new(), + mapping, persistence_layer, } }