Skip to content

Commit

Permalink
More fixes for local migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Nov 1, 2023
1 parent 63a86e3 commit 73ac67a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/controllers/api/v1/migrations/external_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def create_user

return render_error(status: :bad_request, errors: user&.errors&.to_a) unless user.save

if user_hash[:provider] != 'greenlight'
user.password_digest = nil
user.save(validations: false)
end

render_data status: :created
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/meeting_starter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def computed_options(access_code:)
logoutURL: room_url,
meta_endCallbackUrl: meeting_ended_url(host: @base_url),
'meta_bbb-recording-ready-url': recording_ready_url(host: @base_url),
'meta_bbb-origin-version': 3,
'meta_bbb-origin-version': ENV.fetch('VERSION_TAG', 'v3'),
'meta_bbb-origin': 'greenlight'
}
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/admin/server_rooms_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def bbb_meetings
hasJoinedVoice: 'false',
hasVideo: 'false',
clientType: 'HTML5' } },
metadata: { 'bbb-origin-version': '3',
metadata: { 'bbb-origin-version': 'v3',
'bbb-recording-ready-url': 'http://localhost:3000/recording_ready',
'bbb-origin': 'greenlight',
endcallbackurl: 'http://localhost:3000/meeting_ended' },
Expand Down
2 changes: 1 addition & 1 deletion spec/services/meeting_starter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
logoutURL: url,
meta_endCallbackUrl: File.join(base_url, '/meeting_ended'),
'meta_bbb-recording-ready-url': File.join(base_url, '/recording_ready'),
'meta_bbb-origin-version': 3,
'meta_bbb-origin-version': 'v3',
'meta_bbb-origin': 'greenlight',
setting: 'value'
}
Expand Down

0 comments on commit 73ac67a

Please sign in to comment.