From 71c44b08def7134eb9e646a5a2e1f365c531f47f Mon Sep 17 00:00:00 2001 From: Menci Date: Thu, 25 Apr 2019 18:52:49 +0800 Subject: [PATCH] Fix article default not allowed comment --- models/article.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/article.ts b/models/article.ts index 676b92d..18ba0c7 100644 --- a/models/article.ts +++ b/models/article.ts @@ -41,7 +41,7 @@ export default class Article extends Model { @TypeORM.Column({ nullable: true, type: "integer" }) comments_num: number; - @TypeORM.Column({ nullable: true, type: "boolean" }) + @TypeORM.Column({ default: true, type: "boolean" }) allow_comment: boolean; @TypeORM.Index()