Skip to content

Commit

Permalink
Added access codes to migration script (#5433)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Oct 3, 2023
1 parent 11533ed commit 8a15404
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tasks/migrations/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ namespace :migrations do
muteOnStart: parsed_room_settings["muteOnStart"] == true ? "true" : "false",
glAnyoneCanStart: parsed_room_settings["anyoneCanStart"] == true ? "true" : "false",
glAnyoneJoinAsModerator: parsed_room_settings["joinModerator"] == true ? "true" : "false",
guestPolicy: parsed_room_settings["requireModeratorApproval"] == true ? "ASK_MODERATOR" : "ALWAYS_ACCEPT"
guestPolicy: parsed_room_settings["requireModeratorApproval"] == true ? "ASK_MODERATOR" : "ALWAYS_ACCEPT",
}
end

room_settings[:glViewerAccessCode] = r.access_code if r.access_code.present?
room_settings[:glModeratorAccessCode] = r.moderator_access_code if r.moderator_access_code.present?

shared_users_emails = r.shared_access.joins(:user).pluck(:'users.email')

params = { room: { friendly_id: r.uid,
Expand Down

0 comments on commit 8a15404

Please sign in to comment.