From 400d09dc5cde0017768a92608069ff77d0288f92 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 11 Jan 2021 17:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=B8=B8=E6=88=8F=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84statdata=E6=94=B9=E4=B8=BAmixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/GameRecord.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/GameRecord.ts b/src/models/GameRecord.ts index a9031d4..e01a611 100644 --- a/src/models/GameRecord.ts +++ b/src/models/GameRecord.ts @@ -2,7 +2,7 @@ import {dbconn} from "../decorators/dbconn"; import { getModelForClass, index, - modelOptions, + modelOptions, mongoose, prop } from "@typegoose/typegoose"; import {Base, TimeStamps} from "@typegoose/typegoose/lib/defaultClasses"; @@ -26,8 +26,8 @@ class GamePlayer { public cardgroup: string; @prop() public cards: [number]; - @prop() - public statdata: {}; + @prop({type: mongoose.Schema.Types.Mixed}) + public statdata: any; } /** * 对战记录