mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +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[]) =>
|
||||
(await Promise.all(key.map(async (k: string) => {
|
||||
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))
|
||||
, { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 3000000 }) }),
|
||||
votes: new DataLoader(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user