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() {