This commit is contained in:
Felix Ableitner 2023-12-05 13:15:32 +01:00
parent 97a0d15488
commit d44902c246

View file

@ -122,7 +122,9 @@ where
<Kind as Object>::Error: From<Error>,
{
if data.config.is_local_url(&self.0) {
self.dereference_from_db(data).await.map(|o| o.ok_or(Error::NotFound.into()))?
self.dereference_from_db(data)
.await
.map(|o| o.ok_or(Error::NotFound.into()))?
} else {
self.dereference_from_http(data, None).await
}