Shortened list of users being returned (#2512)

This commit is contained in:
Ahmad Farhat 2021-02-06 14:35:13 -05:00 committed by GitHub
parent a608975b08
commit 5b52489d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class RoomsController < ApplicationController
def shared_users
# Respond with JSON object of users that have access to the room
respond_to do |format|
format.json { render body: @room.shared_users.to_json }
format.json { render body: @room.shared_users.pluck_to_hash(:uid, :name, :image).to_json }
end
end