Fix the set to only pull one party
This commit is contained in:
parent
80ca5b8fd0
commit
529e78e098
1 changed files with 1 additions and 3 deletions
|
|
@ -11,8 +11,6 @@ class Api::V1::PartyController < ActionController::API
|
|||
end
|
||||
|
||||
def show
|
||||
ap @party
|
||||
ap @party
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
@ -30,6 +28,6 @@ class Api::V1::PartyController < ActionController::API
|
|||
end
|
||||
|
||||
def set
|
||||
@party = Party.where(shortcode: params[:id])
|
||||
@party = Party.where(shortcode: params[:id]).first
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue