From 42b536dd946788a32749ad37d2cecd07bca25acf Mon Sep 17 00:00:00 2001 From: Menci Date: Thu, 9 May 2019 10:00:38 +0800 Subject: [PATCH] Fix #130 --- models/contest_ranklist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/contest_ranklist.ts b/models/contest_ranklist.ts index 3bcc7ed..50f045b 100644 --- a/models/contest_ranklist.ts +++ b/models/contest_ranklist.ts @@ -14,7 +14,7 @@ export default class ContestRanklist extends Model { @TypeORM.Column({ nullable: true, type: "json" }) ranking_params: any; - @TypeORM.Column({ nullable: true, type: "json" }) + @TypeORM.Column({ default: JSON.stringify({ player_num: 0 }), type: "json" }) ranklist: any; async getPlayers() {