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
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
ap @party
|
|
||||||
ap @party
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
@ -30,6 +28,6 @@ class Api::V1::PartyController < ActionController::API
|
||||||
end
|
end
|
||||||
|
|
||||||
def set
|
def set
|
||||||
@party = Party.where(shortcode: params[:id])
|
@party = Party.where(shortcode: params[:id]).first
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue