feat: channel socket integration

This commit is contained in:
Timothy Jaeryang Baek
2024-12-22 19:40:01 -07:00
parent eaecd15e69
commit f1d21fc59a
13 changed files with 509 additions and 31 deletions

View File

@@ -95,7 +95,7 @@ class MessageTable:
all_messages = (
db.query(Message)
.filter_by(channel_id=channel_id)
.order_by(Message.updated_at.desc())
.order_by(Message.updated_at.asc())
.limit(limit)
.offset(skip)
.all()
@@ -109,7 +109,7 @@ class MessageTable:
all_messages = (
db.query(Message)
.filter_by(user_id=user_id)
.order_by(Message.updated_at.desc())
.order_by(Message.updated_at.asc())
.limit(limit)
.offset(skip)
.all()