Apply suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
aa683ca5d5
commit
3b1287c424
|
@ -11,7 +11,7 @@ class Ajax::RelationshipController < AjaxController
|
||||||
params.require :screen_name
|
params.require :screen_name
|
||||||
|
|
||||||
UseCase::Relationship::Create.call(
|
UseCase::Relationship::Create.call(
|
||||||
source_user: current_user.screen_name,
|
source_user: current_user,
|
||||||
target_user: params[:screen_name],
|
target_user: params[:screen_name],
|
||||||
type: params[:type]
|
type: params[:type]
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,7 @@ class Ajax::RelationshipController < AjaxController
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
UseCase::Relationship::Destroy.call(
|
UseCase::Relationship::Destroy.call(
|
||||||
source_user: current_user.screen_name,
|
source_user: current_user,
|
||||||
target_user: params[:screen_name],
|
target_user: params[:screen_name],
|
||||||
type: params[:type]
|
type: params[:type]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue