From 1bd717e6376005391671f7eaaf736eed3f527d70 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Wed, 8 May 2024 21:19:08 -0500 Subject: [PATCH] Fix bulk endpoint --- app/controllers/yiff_rest/api_v2_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/yiff_rest/api_v2_controller.rb b/app/controllers/yiff_rest/api_v2_controller.rb index 78d5376..ec0eb04 100644 --- a/app/controllers/yiff_rest/api_v2_controller.rb +++ b/app/controllers/yiff_rest/api_v2_controller.rb @@ -174,8 +174,8 @@ module YiffRest **Categories:** #{bulk_categories.permit!.to_h.map { |c, l| "- **#{c}**: #{l}" }.join("\n")} BULK - color = 0xDC143C if bulk_categories.keys.any? { |k| category_info.find { |c| c[:db] == k }[:sfw] } - elsif !(category_info.find { |c| c[:db] == category }[:sfw]) + color = 0xDC143C if bulk_categories.keys.any? { |k| category_info.find { |c| c.db == k }.sfw } + elsif !(category_info.find { |c| c.db == category }.sfw) color = 0xDC143C end Websites.config.yiffyapi_usage_webhook.execute(embeds: [