mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 07:06:03 +01:00
Apply suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
aa683ca5d5
commit
3b1287c424
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue