Fix bulk endpoint
This commit is contained in:
parent
be1931ed8e
commit
1bd717e637
|
@ -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: [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user