添加gamerecord的allowMixed属性
This commit is contained in:
parent
4be37100a3
commit
024e03b3c4
@ -3,7 +3,7 @@ import {
|
||||
getModelForClass,
|
||||
index,
|
||||
modelOptions, mongoose,
|
||||
prop
|
||||
prop, Severity
|
||||
} from "@typegoose/typegoose";
|
||||
import {Base, TimeStamps} from "@typegoose/typegoose/lib/defaultClasses";
|
||||
|
||||
@ -36,7 +36,8 @@ class GamePlayer {
|
||||
@index({'players.accountid': 1}, {unique: false})
|
||||
@modelOptions({
|
||||
schemaOptions:
|
||||
{collection: "game_record", timestamps: true}
|
||||
{collection: "game_record", timestamps: true},
|
||||
options: {allowMixed: Severity.ALLOW}
|
||||
})
|
||||
class GameRecordClass extends Base<string>{
|
||||
@prop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user