Skip to content

Commit

Permalink
Refactor user_invite.rb
Browse files Browse the repository at this point in the history
update parameter name
  • Loading branch information
ekumachidi committed Mar 11, 2024
1 parent c27aa35 commit 91604cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/services/schools/dfe_sign_in_api/user_invite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class UserInvite < Client

def invite_user
@response = response
@response['success'] = @response['status'] == 'success' if @response.present?
@response
end

private
Expand Down Expand Up @@ -53,7 +51,7 @@ def payload
given_name: firstname,
family_name: lastname,
email: email,
organisationId: organisation_id
organisation: organisation_id
)
end
end
Expand Down

0 comments on commit 91604cb

Please sign in to comment.