mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
fix: returning string for page number
This commit is contained in:
parent
9755201323
commit
27f07cf7d6
@ -248,7 +248,8 @@ export const get = {
|
|||||||
async (key: string[]) =>
|
async (key: string[]) =>
|
||||||
(await Promise.all(key.map(async (k: string) => {
|
(await Promise.all(key.map(async (k: string) => {
|
||||||
const json = JSON.parse(k)
|
const json = JSON.parse(k)
|
||||||
return await getBotList('SEARCH', json.page, json.query)
|
const res = await getBotList('SEARCH', json.page, json.query)
|
||||||
|
return { ...res, totalPage: Number(res.totalPage), currentPage: Number(res.currentPage) }
|
||||||
}))).map(row => serialize(row))
|
}))).map(row => serialize(row))
|
||||||
, { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 3000000 }) }),
|
, { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 3000000 }) }),
|
||||||
votes: new DataLoader(
|
votes: new DataLoader(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user