Skip to content

Commit 6f805a0

Browse files
FinleyGec121914yu
authored andcommitted
chore: adjust
1 parent 96e2a57 commit 6f805a0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/service/common/system/countLimit/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const CountLimitSchema = new Schema({
2121
});
2222

2323
try {
24-
CountLimitSchema.index({ type: 1 });
2524
CountLimitSchema.index({ type: 1, key: 1 }, { unique: true });
2625
} catch (error) {
2726
console.log(error);

packages/service/support/user/schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ const UserSchema = new Schema({
4949
},
5050
language: {
5151
type: String,
52-
enum: LangEnum,
53-
default: 'zh-CN'
52+
default: LangEnum.zh_CN
5453
},
5554
lastLoginTmbId: {
5655
type: Schema.Types.ObjectId,

0 commit comments

Comments
 (0)