Chore: Inbox Members API improvements (#3008)

- New Inbox Member APIs
- Return JSON errors for Platform APIs
This commit is contained in:
Sojan Jose 2021-09-14 11:55:02 +05:30 committed by GitHub
parent ccd0dc39ad
commit 22d1c8baf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 767 additions and 131 deletions

View file

@ -7,8 +7,8 @@ class Platform::Api::V1::UsersController < PlatformController
def create
@resource = (User.find_by(email: user_params[:email]) || User.new(user_params))
@resource.confirm
@resource.save!
@resource.confirm
@platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource)
end