fix timelines

This commit is contained in:
cutestnekoaqua 2023-02-11 23:12:14 +01:00
parent c135d16024
commit 43c985d78c
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 2 additions and 1 deletions

View File

@ -6,8 +6,9 @@ import Autolinker from "autolinker";
import { ParsedUrlQuery } from "querystring";
export function toLimitToInt(q: ParsedUrlQuery) {
let object: any = q;
if (q.limit)
if (typeof q.limit === "string") q.limit = parseInt(q.limit, 10).toString();
if (typeof q.limit === "string") object.limit = parseInt(q.limit, 10);
return q;
}