Browse Source

Fix problem discussion list empty

pull/6/head
Menci 6 years ago
parent
commit
d71b49a2cd
  1. 2
      modules/discussion.js

2
modules/discussion.js

@ -12,7 +12,7 @@ app.get('/discussion/:type?', async (req, res) => {
let where; let where;
if (in_problems) { if (in_problems) {
where = { problem_id: TypeORM.Not(null) }; where = { problem_id: TypeORM.Not(TypeORM.IsNull()) };
} else { } else {
where = { problem_id: null }; where = { problem_id: null };
} }

Loading…
Cancel
Save