From 04688d7726471a017a64138b3ca8a4cbebbbe4b7 Mon Sep 17 00:00:00 2001 From: hankeke303 Date: Mon, 13 May 2019 22:16:15 +0800 Subject: [PATCH] fix code unable to be judged in contests --- models/contest_player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/contest_player.ts b/models/contest_player.ts index 686bd5a..2d8ac1b 100644 --- a/models/contest_player.ts +++ b/models/contest_player.ts @@ -22,7 +22,7 @@ export default class ContestPlayer extends Model { @TypeORM.Column({ nullable: true, type: "integer" }) score: number; - @TypeORM.Column({ nullable: true, type: "json" }) + @TypeORM.Column({ default: JSON.stringify({}), type: "json" }) score_details: object; @TypeORM.Column({ nullable: true, type: "integer" })