diff --git a/utils/Query.ts b/utils/Query.ts index 819b075035..f1b53efb6e 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -316,7 +316,7 @@ async function getBotList(type: ListType, page = 1, query?: string): Promise await getBot(el.id)))).map((r) => ({ ...r })), + data: (await Promise.all(res.map(async (el) => await getBot(el.id, false)))).map((r) => ({ ...r })), currentPage: page, totalPage: Math.ceil(Number(count) / (type === 'SEARCH' ? 8 : 16)), } @@ -421,7 +421,7 @@ async function getServerList(type: ListType, page = 1, query?: string): Promise< } return { type, - data: (await Promise.all(res.map(async (el) => await getServer(el.id)))).map((r) => ({ ...r })), + data: (await Promise.all(res.map(async (el) => await getServer(el.id, false)))).map((r) => ({ ...r })), currentPage: page, totalPage: Math.ceil(Number(count) / (type === 'SEARCH' ? 8 : 16)), }