优化了agent

This commit is contained in:
lik
2026-10-31 18:51:20 +08:00
parent ab584c5fa8
commit 02d57f82dc
22 changed files with 193 additions and 155 deletions
+1 -3
View File
@@ -192,8 +192,6 @@ HealthProfileSchema.statics.deleteProfileById = async function (id) {
};
// ==================== 索引定义 ====================
HealthProfileSchema.index({ userId: 1 }, { sparse: true });
HealthProfileSchema.index({ "profile.mobile": 1 });
// 注意:userId(sparse)与 profile.mobile 的索引在字段定义处声明,勿在此重复声明
export { HealthProfileSchema, genPinyin, genPinyinFL };