From d71b49a2cd5079e166ae45f01248ae58abd10367 Mon Sep 17 00:00:00 2001 From: Menci Date: Thu, 25 Apr 2019 11:02:07 +0800 Subject: [PATCH] Fix problem discussion list empty --- modules/discussion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/discussion.js b/modules/discussion.js index 840287d..9ba0e96 100644 --- a/modules/discussion.js +++ b/modules/discussion.js @@ -12,7 +12,7 @@ app.get('/discussion/:type?', async (req, res) => { let where; if (in_problems) { - where = { problem_id: TypeORM.Not(null) }; + where = { problem_id: TypeORM.Not(TypeORM.IsNull()) }; } else { where = { problem_id: null }; }