From 529e78e09824c3420efedb55da39c441ade497cf Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 16 Sep 2020 23:49:16 -0700 Subject: [PATCH] Fix the set to only pull one party --- app/controllers/api/v1/party_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/api/v1/party_controller.rb b/app/controllers/api/v1/party_controller.rb index c1d90ab..00f02ca 100644 --- a/app/controllers/api/v1/party_controller.rb +++ b/app/controllers/api/v1/party_controller.rb @@ -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 \ No newline at end of file