Skip to content

Commit

Permalink
feat: Implement room presentation migration (#5694) (#5696)
Browse files Browse the repository at this point in the history
  • Loading branch information
danimo authored Feb 28, 2024
1 parent 30882ef commit 04c7288
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tasks/migrations/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ namespace :migrations do
provider: r.owner.provider,
room_settings: room_settings,
shared_users_emails: shared_users_emails } }
if r.presentation.attached?
params[:room][:presentation] = { blob: Base64.encode64(r.presentation.blob.download),
filename: r.presentation.blob.filename.to_s }
end

response = Net::HTTP.post(uri('rooms'), payload(params), COMMON[:headers])

Expand Down

0 comments on commit 04c7288

Please sign in to comment.