Refine board notes, clipping evidence, and case reports
This commit is contained in:
@@ -213,7 +213,6 @@ app.post('/api/levels/:id/report/submissions', async (req, res, next) => {
|
||||
try {
|
||||
const report = await submitCaseReport(pool,String(req.params.id),{
|
||||
investigatorName:String(req.body?.investigatorName || resolvePlayerName(req)),
|
||||
evidence:Array.isArray(req.body?.evidence) ? req.body.evidence : [],
|
||||
})
|
||||
report ? res.status(201).json(report) : res.status(404).json({ error:'Level not found' })
|
||||
} catch (error) { next(error) }
|
||||
|
||||
Reference in New Issue
Block a user