This commit is contained in:
Conrad Irwin 2024-01-25 11:12:02 -07:00
parent adb6f3e9f7
commit fbdca993ff
3 changed files with 56 additions and 64 deletions

View file

@ -19,10 +19,7 @@ impl Database {
#[cfg(test)]
pub async fn create_root_channel(&self, name: &str, creator_id: UserId) -> Result<ChannelId> {
Ok(self
.create_channel(name, None, creator_id)
.await?
.id)
Ok(self.create_channel(name, None, creator_id).await?.id)
}
#[cfg(test)]