Store::create() Make outgoing storeid object unstorified

This commit is contained in:
Matthias Beyer 2016-07-02 23:26:43 +02:00
parent 9f213ddc31
commit 41d7d1c213

View file

@ -344,10 +344,13 @@ impl Store {
se
});
let mut fle = FileLockEntry::new(self, Entry::new(id));
self.execute_hooks_for_mut_file(self.post_create_aspects.clone(), &mut fle)
.map_err_into(SEK::PostHookExecuteError)
.map(|_| fle)
id.unstorified(self)
.and_then(|id| {
let mut fle = FileLockEntry::new(self, Entry::new(id));
self.execute_hooks_for_mut_file(self.post_create_aspects.clone(), &mut fle)
.map_err_into(SEK::PostHookExecuteError)
.map(|_| fle)
})
.map_err_into(SEK::CreateCallError)
}