forked from External/greenlight
finish controller tests
This commit is contained in:
@ -155,7 +155,7 @@ class RoomsController < ApplicationController
|
||||
def bring_to_room
|
||||
if current_user
|
||||
# Redirect authenticated users to their room.
|
||||
redirect_to room_path(current_user.room)
|
||||
redirect_to room_path(current_user.main_room)
|
||||
else
|
||||
# Redirect unauthenticated users to root.
|
||||
redirect_to root_path
|
||||
|
@ -97,7 +97,6 @@ class Room < ApplicationRecord
|
||||
# Fetches all recordings for a room.
|
||||
def recordings
|
||||
res = bbb.get_recordings(meetingID: bbb_id)
|
||||
|
||||
# Format playbacks in a more pleasant way.
|
||||
res[:recordings].each do |r|
|
||||
next if r.key?(:error)
|
||||
|
Reference in New Issue
Block a user