From 40f287996cada14f8637f8b547f473994e82889b Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 11 May 2023 11:11:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E6=95=B0=E6=8D=AE=E5=BA=93):?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E6=85=A2=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/FriendApply.ts | 1 + shared/db/GiftCodeDetail.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/shared/db/FriendApply.ts b/shared/db/FriendApply.ts index 235cd9cb8..72b05c880 100644 --- a/shared/db/FriendApply.ts +++ b/shared/db/FriendApply.ts @@ -9,6 +9,7 @@ import { ROLE_SELECT } from '../consts'; */ @index({ roleId: 1, frdRoleId: 1 }) @index({ applyCode: 1 }) +@index({ frdRoleId: 1 }) export default class FriendApply extends BaseModel { diff --git a/shared/db/GiftCodeDetail.ts b/shared/db/GiftCodeDetail.ts index a69681e9c..12cb0893f 100644 --- a/shared/db/GiftCodeDetail.ts +++ b/shared/db/GiftCodeDetail.ts @@ -29,6 +29,7 @@ class RoleRecord { @modelOptions({ schemaOptions: { id: false } }) @index({ code: 1 }) @index({ giftId: 1 }) +@index({ 'record.roleId': 1 }) export default class GiftCodeDetail extends BaseModel { @prop({ required: true, default: '' })