Merge pull request #1360 from matthiasbeyer/libimaghabit/create-vs-retrieve

Fix: Use retrieve in retrieve variant
This commit is contained in:
Matthias Beyer 2018-03-23 10:03:52 +01:00 committed by GitHub
commit 835c003491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,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, self))
}