From 5ca8e22cd39845859744bb673475d8e0bda60059 Mon Sep 17 00:00:00 2001 From: ITOH Date: Wed, 12 May 2021 18:18:59 +0200 Subject: [PATCH] fix: await cacheHandlers.filter --- src/helpers/channels/category_children.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, );