Fix apidev stats

This commit is contained in:
Donovan Daniels 2024-05-03 01:36:37 -05:00
parent 107acfb155
commit 61b92c347e
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -302,7 +302,7 @@ module DiscordInteractions
end
end
stats = APIKey.stats(ip: ip, key: key)
stats = APIKey.stats(ip: ip, key: apikey)
if key.present?
stats = flatten_hash(stats[:key])
text = "Stats for **#{apikey.application_name}** (||#{apikey.key}||)\n\n"