Skip to content
Snippets Groups Projects
Unverified Commit 3419be76 authored by Samuel Couillard's avatar Samuel Couillard Committed by GitHub
Browse files

Improve Migration API (#4047)

parent 269ce13e
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,8 @@ module Api ...@@ -74,6 +74,8 @@ module Api
def create_room def create_room
room_hash = room_params.to_h room_hash = room_params.to_h
return render_data status: :created if Room.exists? friendly_id: room_hash[:friendly_id]
user = User.find_by(email: room_hash[:owner_email], provider: 'greenlight') user = User.find_by(email: room_hash[:owner_email], provider: 'greenlight')
return render_error status: :bad_request unless user return render_error status: :bad_request unless user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment