mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Fix incorrect ?? placement
This would not set a default value of 20
This commit is contained in:
parent
5ed3f04d48
commit
132bec4d5b
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue