Skip to content
Snippets Groups Projects
Unverified Commit 6b7f9e08 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fixed 500 if user has no rooms in Latest Recordings (#2600)

parent 79beb7f3
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ module Populator
if user.present?
# Find user and get his recordings
rooms = User.find_by(email: user)&.rooms&.pluck(:bbb_id)
return all_recordings(rooms) if user.present?
return all_recordings(rooms) if user.present? && !rooms.nil?
[] # return no recs if room not found
elsif room.present?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment