Fix: Use retrieve in retrieve variant

This commit is contained in:
Matthias Beyer 2018-03-22 21:33:50 +01:00
parent 247b9499a7
commit 30233456df

View file

@ -115,7 +115,7 @@ impl HabitTemplate for Entry {
let date = date_to_string(date); let date = date_to_string(date);
let id = instance_id_for_name_and_datestr(&name, &date)?; let id = instance_id_for_name_and_datestr(&name, &date)?;
store.create(id) store.retrieve(id)
.map_err(From::from) .map_err(From::from)
.and_then(|entry| postprocess_instance(entry, name, date, comment)) .and_then(|entry| postprocess_instance(entry, name, date, comment))
} }