We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe71d90 commit a3b2e73Copy full SHA for a3b2e73
sentry/src/db/channel.rs
@@ -70,27 +70,6 @@ pub async fn insert_channel(
70
.await
71
}
72
73
-pub async fn get_channel_by_creator(
74
- pool: &DbPool,
75
- id: &ChannelId,
76
-) -> Result<Vec<Channel>, RunError<bb8_postgres::tokio_postgres::Error>> {
77
- pool.run(move |connection| {
78
- async move {
79
- match connection
80
- .prepare("SELECT id FROM channels WHERE creator = $1")
81
- .await
82
- {
83
- Ok(select) => match connection.query(&select, &[&id]).await {
84
- Ok(results) => Ok((results.iter().map(Channel::from).collect(), connection)),
85
- Err(e) => Err((e, connection)),
86
- },
87
88
- }
89
90
- })
91
92
-}
93
-
94
mod list_channels {
95
use crate::db::DbPool;
96
use bb8::RunError;
0 commit comments