mirror of
https://github.com/cupcakearmy/ora.git
synced 2024-12-21 23:56:31 +00:00
fix error message
This commit is contained in:
parent
3f25d8a09e
commit
ee29c0b25b
@ -52,6 +52,7 @@ export function getUsageForRules(host, rules) {
|
|||||||
|
|
||||||
export async function getUsageForHost(host) {
|
export async function getUsageForHost(host) {
|
||||||
const limit = await DB.limits.where({ host }).first()
|
const limit = await DB.limits.where({ host }).first()
|
||||||
|
if (!limit) return []
|
||||||
return await Promise.all(getUsageForRules(host, limit.rules))
|
return await Promise.all(getUsageForRules(host, limit.rules))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user