|
|
@ -50,7 +50,7 @@ app.get('/submissions', async (req, res) => { |
|
|
|
else if (req.query.submitter) where.user_id = -1; |
|
|
|
else if (req.query.submitter) where.user_id = -1; |
|
|
|
|
|
|
|
|
|
|
|
if (!req.query.contest) { |
|
|
|
if (!req.query.contest) { |
|
|
|
where.type = { $ne: 1 }; |
|
|
|
where.type = { $eq: 0 }; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const contestId = Number(req.query.contest); |
|
|
|
const contestId = Number(req.query.contest); |
|
|
|
const contest = await Contest.fromID(contestId); |
|
|
|
const contest = await Contest.fromID(contestId); |
|
|
|