summaryrefslogtreecommitdiff
path: root/src/repo/channel.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-17 19:06:20 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-17 19:06:20 -0400
commit921f38a73e5d58a5a6077477a8b52d2705798f55 (patch)
tree895eee6c31a9e6003e4d199e32eb04bcb32f8f11 /src/repo/channel.rs
parente6be82157fe718570aa13ab12803ee39083b8dff (diff)
Express record dependencies through types.
This provides a convenient place to _stick_ "not found" errors, though actually introducing them will come in a later commit.
Diffstat (limited to 'src/repo/channel.rs')
-rw-r--r--src/repo/channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repo/channel.rs b/src/repo/channel.rs
index ab7489c..8e3a471 100644
--- a/src/repo/channel.rs
+++ b/src/repo/channel.rs
@@ -43,7 +43,7 @@ impl<'c> Channels<'c> {
Ok(channel)
}
- pub async fn by_id(&mut self, channel: Id) -> Result<Channel, sqlx::Error> {
+ pub async fn by_id(&mut self, channel: &Id) -> Result<Channel, sqlx::Error> {
let channel = sqlx::query_as!(
Channel,
r#"