We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e2a57 commit 6f805a0Copy full SHA for 6f805a0
packages/service/common/system/countLimit/schema.ts
@@ -21,7 +21,6 @@ const CountLimitSchema = new Schema({
21
});
22
23
try {
24
- CountLimitSchema.index({ type: 1 });
25
CountLimitSchema.index({ type: 1, key: 1 }, { unique: true });
26
} catch (error) {
27
console.log(error);
packages/service/support/user/schema.ts
@@ -49,8 +49,7 @@ const UserSchema = new Schema({
49
},
50
language: {
51
type: String,
52
- enum: LangEnum,
53
- default: 'zh-CN'
+ default: LangEnum.zh_CN
54
55
lastLoginTmbId: {
56
type: Schema.Types.ObjectId,
0 commit comments