diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-03 20:44:07 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-03 21:03:02 -0400 |
| commit | 617172576b95bbb935a75f98a98787da5a4e9a9d (patch) | |
| tree | ae72fea2e81d023960c93d4efbf7e137c3705c48 /src/channel/repo.rs | |
| parent | 0a5599c60d20ccc2223779eeba5dc91a95ea0fe5 (diff) | |
List messages per channel.
Diffstat (limited to 'src/channel/repo.rs')
| -rw-r--r-- | src/channel/repo.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/channel/repo.rs b/src/channel/repo.rs index 8bb761b..2b48436 100644 --- a/src/channel/repo.rs +++ b/src/channel/repo.rs @@ -84,10 +84,7 @@ impl<'c> Channels<'c> { Ok(channel) } - pub async fn all( - &mut self, - resume_point: Option<Sequence>, - ) -> Result<Vec<History>, sqlx::Error> { + pub async fn all(&mut self, resume_at: Option<Sequence>) -> Result<Vec<History>, sqlx::Error> { let channels = sqlx::query!( r#" select @@ -99,7 +96,7 @@ impl<'c> Channels<'c> { where coalesce(created_sequence <= $1, true) order by channel.name "#, - resume_point, + resume_at, ) .map(|row| History { channel: Channel { |
