Fix: pdf version (#853)

* doc

* perf: mongo index

* perf: chat item index

* fix: packages
This commit is contained in:
Archer
2024-02-16 12:19:05 +08:00
committed by GitHub
parent 91bcf8c53e
commit bf7ee919b6
14 changed files with 471 additions and 430 deletions

View File

@@ -90,11 +90,8 @@ try {
close custom feedback;
*/
ChatItemSchema.index({ appId: 1, chatId: 1, dataId: 1 }, { background: true });
// admin charts
ChatItemSchema.index({ time: -1, obj: 1 }, { background: true });
ChatItemSchema.index({ userGoodFeedback: 1 }, { background: true });
ChatItemSchema.index({ userBadFeedback: 1 }, { background: true });
ChatItemSchema.index({ customFeedbacks: 1 }, { background: true });
ChatItemSchema.index({ adminFeedback: 1 }, { background: true });
} catch (error) {
console.log(error);
}