X-Press publishing errors

i need to fix this error:
5) DELETE /api/series/:seriesId/issues/:issueId
should return a 404 status code for invalid issue IDs:
Error: expected 404 “Not Found”, got 400 “Bad Request”
at Test._assertStatus (node_modules\supertest\lib\test.js:268:12)
at Test._assertFunction (node_modules\supertest\lib\test.js:283:11)
at Test.assert (node_modules\supertest\lib\test.js:173:18)
at Server.localAssert (node_modules\supertest\lib\test.js:131:12)
at emitCloseNT (net.js:1650:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
and this is my code

issuesRouter.delete(’/:issueId’, (req, res, next) => {

const sql = ‘DELETE FROM Issue WHERE Issue.id = $issueId’;

const values = {$issueId: req.params.issueId};

db.run(sql, values, (error) => {








This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.