feat: channel socket integration

This commit is contained in:
Timothy Jaeryang Baek committed 2024-12-22 19:40:01 -07:00
1 parent eaecd15e69
commit f1d21fc59a
13 files changed
+509 -31

No files matched your search

+2 -2
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()