Fix bulk endpoint

This commit is contained in:
Donovan Daniels 2024-05-08 21:19:08 -05:00
parent be1931ed8e
commit 1bd717e637
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -174,8 +174,8 @@ module YiffRest
**Categories:** **Categories:**
#{bulk_categories.permit!.to_h.map { |c, l| "- **#{c}**: #{l}" }.join("\n")} #{bulk_categories.permit!.to_h.map { |c, l| "- **#{c}**: #{l}" }.join("\n")}
BULK BULK
color = 0xDC143C if bulk_categories.keys.any? { |k| category_info.find { |c| c[:db] == k }[: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]) elsif !(category_info.find { |c| c.db == category }.sfw)
color = 0xDC143C color = 0xDC143C
end end
Websites.config.yiffyapi_usage_webhook.execute(embeds: [ Websites.config.yiffyapi_usage_webhook.execute(embeds: [