Apply suggestions from @nilsding

Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
Karina Kwiatek 2022-01-22 23:37:51 +01:00
parent aa683ca5d5
commit 3b1287c424
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Ajax::RelationshipController < AjaxController
params.require :screen_name
UseCase::Relationship::Create.call(
source_user: current_user.screen_name,
source_user: current_user,
target_user: params[:screen_name],
type: params[:type]
)
@ -25,7 +25,7 @@ class Ajax::RelationshipController < AjaxController
def destroy
UseCase::Relationship::Destroy.call(
source_user: current_user.screen_name,
source_user: current_user,
target_user: params[:screen_name],
type: params[:type]
)