fix: 账单余额问题

This commit is contained in:
archer
2023-04-04 21:32:51 +08:00
parent c12aa7fdf7
commit b13c3c4da5
7 changed files with 32 additions and 45 deletions

View File

@@ -36,10 +36,7 @@ export const authChat = async (chatId: string, authorization?: string) => {
}
// 获取 user 的 apiKey
const { user, userApiKey, systemKey } = await getOpenApiKey(
chat.userId as unknown as string,
false
);
const { user, userApiKey, systemKey } = await getOpenApiKey(chat.userId as unknown as string);
// filter 掉被 deleted 的内容
chat.content = chat.content.filter((item) => item.deleted !== true);