Fix the set to only pull one party

This commit is contained in:
Justin Edmund 2020-09-16 23:49:16 -07:00
parent 80ca5b8fd0
commit 529e78e098

View file

@ -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