fix: await cacheHandlers.filter

This commit is contained in:
ITOH
2021-05-12 18:18:59 +02:00
parent 275d17c6fe
commit 5ca8e22cd3
+2 -2
View File
@@ -1,8 +1,8 @@
import { cacheHandlers } from "../../cache.ts"; import { cacheHandlers } from "../../cache.ts";
/** Gets an array of all the channels ids that are the children of this category. */ /** Gets an array of all the channels ids that are the children of this category. */
export function categoryChildren(id: bigint) { export async function categoryChildren(id: bigint) {
return cacheHandlers.filter( return await cacheHandlers.filter(
"channels", "channels",
(channel) => channel.parentId === id, (channel) => channel.parentId === id,
); );