Merge pull request #20761 from plant99/improve-top-user-reactions
[MM-45561] Improve user top reactions query
Этот коммит содержится в:
@@ -316,8 +316,7 @@ func (s *SqlReactionStore) GetTopForUserSince(userID string, teamID string, sinc
|
|||||||
count(EmojiName) AS Count
|
count(EmojiName) AS Count
|
||||||
FROM
|
FROM
|
||||||
Reactions
|
Reactions
|
||||||
INNER JOIN Posts ON Reactions.PostId = Posts.Id
|
INNER JOIN Channels ON Channels.Id = Reactions.ChannelId
|
||||||
INNER JOIN Channels ON Posts.ChannelId = Channels.Id
|
|
||||||
WHERE
|
WHERE
|
||||||
Reactions.DeleteAt = 0
|
Reactions.DeleteAt = 0
|
||||||
AND Reactions.UserId = ?
|
AND Reactions.UserId = ?
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user