Browse Source

Fix problem discussion list empty

pull/6/head
Menci 5 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;
if (in_problems) {
where = { problem_id: TypeORM.Not(null) };
where = { problem_id: TypeORM.Not(TypeORM.IsNull()) };
} else {
where = { problem_id: null };
}

Loading…
Cancel
Save