From 132bec4d5b522628e256f94175dd4e24b812b34d Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 3 Oct 2024 10:31:57 +0200 Subject: [PATCH] fix(api): :bug: Fix incorrect ?? placement This would not set a default value of 20 --- utils/timelines.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/timelines.ts b/utils/timelines.ts index da3db574..29ae2ec8 100644 --- a/utils/timelines.ts +++ b/utils/timelines.ts @@ -50,7 +50,7 @@ export async function fetchTimeline( ); } - if (objects.length >= (Number(args?.limit) ?? 20)) { + if (objects.length >= Number(args?.limit ?? 20)) { // Check if there are statuses after the last one // @ts-expect-error hack again const objectsAfter = await model({