From 96adcc954037992930bfc5acecc5008d8d8a8d1f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 28 Feb 2022 16:55:42 -0800 Subject: [PATCH] Don't run set_from_slug before destroying parties This caused a 500 that caused parties to be unable to deleted --- app/controllers/api/v1/parties_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index 9ebaee8..e7da4f8 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -1,5 +1,5 @@ class Api::V1::PartiesController < Api::V1::ApiController - before_action :set_from_slug, except: ['create', 'update', 'index', 'favorites'] + before_action :set_from_slug, except: ['create', 'destroy', 'update', 'index', 'favorites'] before_action :set, only: ['update', 'destroy'] def create