Skip to content

Commit

Permalink
🐛 GetUserUnreadChannels に LIMIT 1;を追加
Browse files Browse the repository at this point in the history
🐛 付ける場所違った
  • Loading branch information
pikachu0310 committed Dec 5, 2023
1 parent 1d18867 commit dc0b0e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repository/gorm/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ func (repo *Repository) GetUserUnreadChannels(userID uuid.UUID) ([]*repository.U
WHERE user_id = MIN(u.user_id)
AND channel_id = u.channel_id
AND message_created_at = MIN(u.message_created_at)
LIMIT 1
) AS oldest_message_id
/*
2023/04/26時点
Expand Down

0 comments on commit dc0b0e4

Please sign in to comment.