fix: fetch messages properly
This commit is contained in:
parent
d0ecf1b375
commit
d102966198
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ impl Channel {
|
||||||
dsl::messages
|
dsl::messages
|
||||||
.filter(dsl::channel_uuid.eq(self.uuid))
|
.filter(dsl::channel_uuid.eq(self.uuid))
|
||||||
.select(MessageBuilder::as_select())
|
.select(MessageBuilder::as_select())
|
||||||
|
.order(dsl::uuid.desc())
|
||||||
.limit(amount)
|
.limit(amount)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.load(&mut conn)
|
.load(&mut conn)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue