diff options
Diffstat (limited to 'src/index')
| -rw-r--r-- | src/index/app.rs | 2 | ||||
| -rw-r--r-- | src/index/routes.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/index/app.rs b/src/index/app.rs index 41b12fa..a4ef57f 100644 --- a/src/index/app.rs +++ b/src/index/app.rs @@ -14,7 +14,7 @@ impl<'a> Index<'a> { Self { db } } - pub async fn channel(&self, channel: channel::Id) -> Result<Channel, BoxedError> { + pub async fn channel(&self, channel: &channel::Id) -> Result<Channel, BoxedError> { let mut tx = self.db.begin().await?; let channel = tx.channels().by_id(channel).await?; tx.commit().await?; diff --git a/src/index/routes.rs b/src/index/routes.rs index ef46cc1..32c7f12 100644 --- a/src/index/routes.rs +++ b/src/index/routes.rs @@ -50,7 +50,7 @@ async fn channel( _: Login, Path(channel): Path<channel::Id>, ) -> Result<Markup, InternalError> { - let channel = app.index().channel(channel).await?; + let channel = app.index().channel(&channel).await?; Ok(templates::channel(&channel)) } |
