fix error message

This commit is contained in:
cupcakearmy 2021-11-22 01:58:29 +01:00
parent 3f25d8a09e
commit ee29c0b25b
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -52,6 +52,7 @@ export function getUsageForRules(host, rules) {
export async function getUsageForHost(host) {
const limit = await DB.limits.where({ host }).first()
if (!limit) return []
return await Promise.all(getUsageForRules(host, limit.rules))
}