diff --git a/src/helpers/channels/category_children.ts b/src/helpers/channels/category_children.ts index 4ca9a74f8..b59070454 100644 --- a/src/helpers/channels/category_children.ts +++ b/src/helpers/channels/category_children.ts @@ -1,8 +1,8 @@ import { cacheHandlers } from "../../cache.ts"; /** Gets an array of all the channels ids that are the children of this category. */ -export function categoryChildren(id: bigint) { - return cacheHandlers.filter( +export async function categoryChildren(id: bigint) { + return await cacheHandlers.filter( "channels", (channel) => channel.parentId === id, );