Skip to content

Commit cc38c3f

Browse files
authored
Merge pull request #1238 from AppFlowy-IO/fix-chat-user-uuid
fix: wrong field being used for author uuid
2 parents 954266f + 145dc2a commit cc38c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/database/src/chat/chat_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ pub async fn select_chat_messages_with_author_uuid(
551551
cm.meta_data,
552552
cm.reply_message_id
553553
FROM af_chat_messages AS cm
554-
LEFT OUTER JOIN af_user ON (cm.author->>'uid')::BIGINT = af_user.uid
554+
LEFT OUTER JOIN af_user ON (cm.author->>'author_id')::BIGINT = af_user.uid
555555
WHERE chat_id = $1
556556
"#
557557
.to_string();

0 commit comments

Comments
 (0)