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 se
}); });
let mut fle = FileLockEntry::new(self, Entry::new(id)); id.unstorified(self)
self.execute_hooks_for_mut_file(self.post_create_aspects.clone(), &mut fle) .and_then(|id| {
.map_err_into(SEK::PostHookExecuteError) let mut fle = FileLockEntry::new(self, Entry::new(id));
.map(|_| fle) 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) .map_err_into(SEK::CreateCallError)
} }