diff options
Diffstat (limited to 'src/index/app.rs')
| -rw-r--r-- | src/index/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index/app.rs b/src/index/app.rs index fabf35c..41b12fa 100644 --- a/src/index/app.rs +++ b/src/index/app.rs @@ -1,8 +1,8 @@ use sqlx::sqlite::SqlitePool; use crate::{ - channel::repo::channels::{Channel, Id as ChannelId, Provider as _}, error::BoxedError, + repo::channel::{self, Channel, Provider as _}, }; pub struct Index<'a> { @@ -14,7 +14,7 @@ impl<'a> Index<'a> { Self { db } } - pub async fn channel(&self, channel: ChannelId) -> 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?; |
