DEV: Add explicit order for chat mentioned users (#21765)
Followup d4a5b79592
which could sometimes flake on tests due to ordering issues.
This commit is contained in:
parent
dab37c1a5a
commit
39d213a023
|
@ -29,6 +29,7 @@ module Chat
|
|||
def mentioned_users
|
||||
User
|
||||
.where(id: object.chat_mentions.pluck(:user_id))
|
||||
.order("users.id ASC")
|
||||
.map { |user| BasicUserWithStatusSerializer.new(user, root: false) }
|
||||
.as_json
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue