mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: serializing botSubmit
This commit is contained in:
parent
d180198fc5
commit
b73a60a310
@ -249,7 +249,7 @@ export const get = {
|
|||||||
(await Promise.all(key.map(async (el: string) => {
|
(await Promise.all(key.map(async (el: string) => {
|
||||||
const json = JSON.parse(el)
|
const json = JSON.parse(el)
|
||||||
return await getBotSubmit(json.id, json.date)
|
return await getBotSubmit(json.id, json.date)
|
||||||
})))
|
}))).map(row => serialize(row))
|
||||||
, { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 60000 }) }),
|
, { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 60000 }) }),
|
||||||
list: {
|
list: {
|
||||||
category: new DataLoader(
|
category: new DataLoader(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user