mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 14:51:31 -07:00
fix timelines
This commit is contained in:
parent
9189ef29ba
commit
273ab91284
1 changed files with 2 additions and 1 deletions
|
@ -6,8 +6,9 @@ import Autolinker from "autolinker";
|
||||||
import { ParsedUrlQuery } from "querystring";
|
import { ParsedUrlQuery } from "querystring";
|
||||||
|
|
||||||
export function toLimitToInt(q: ParsedUrlQuery) {
|
export function toLimitToInt(q: ParsedUrlQuery) {
|
||||||
|
let object: any = q;
|
||||||
if (q.limit)
|
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;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue