Fix: Use retrieve in retrieve variant
This commit is contained in:
parent
247b9499a7
commit
30233456df
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ impl HabitTemplate for Entry {
|
|||
let date = date_to_string(date);
|
||||
let id = instance_id_for_name_and_datestr(&name, &date)?;
|
||||
|
||||
store.create(id)
|
||||
store.retrieve(id)
|
||||
.map_err(From::from)
|
||||
.and_then(|entry| postprocess_instance(entry, name, date, comment))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue