From b73a60a31097772067458afbde442d0373b249e1 Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Sun, 14 Feb 2021 13:45:23 +0900 Subject: [PATCH] feat: serializing botSubmit --- utils/Query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Query.ts b/utils/Query.ts index 4f66891..98128cf 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -249,7 +249,7 @@ export const get = { (await Promise.all(key.map(async (el: string) => { const json = JSON.parse(el) return await getBotSubmit(json.id, json.date) - }))) + }))).map(row => serialize(row)) , { cacheMap: new TLRU({ maxStoreSize: 50, maxAgeMs: 60000 }) }), list: { category: new DataLoader(