fix(api): 🐛 Fix incorrect ?? placement

This would not set a default value of 20
This commit is contained in:
Jesse Wierzbinski 2024-10-03 10:31:57 +02:00
parent 5ed3f04d48
commit 132bec4d5b
No known key found for this signature in database

View file

@ -50,7 +50,7 @@ export async function fetchTimeline<T extends UserType | Status | Notification>(
); );
} }
if (objects.length >= (Number(args?.limit) ?? 20)) { if (objects.length >= Number(args?.limit ?? 20)) {
// Check if there are statuses after the last one // Check if there are statuses after the last one
// @ts-expect-error hack again // @ts-expect-error hack again
const objectsAfter = await model({ const objectsAfter = await model({