fix: save chat and hook

This commit is contained in:
archer
2023-07-28 15:56:50 +08:00
parent a77e3880f4
commit 0a689b0ab8
5 changed files with 71 additions and 55 deletions

View File

@@ -19,7 +19,7 @@ export const pushTaskBill = async ({
shareId?: string;
response: ChatHistoryItemResType[];
}) => {
const total = response.reduce((sum, item) => sum + item.price, 0) || 1;
const total = response.reduce((sum, item) => sum + item.price, 0);
await Promise.allSettled([
Bill.create({