Merge pull request #1360 from matthiasbeyer/libimaghabit/create-vs-retrieve
Fix: Use retrieve in retrieve variant
This commit is contained in:
commit
835c003491
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,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, self))
|
.and_then(|entry| postprocess_instance(entry, name, date, comment, self))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue