diff --git a/packages/orchestration-service/src/routes/projects.js b/packages/orchestration-service/src/routes/projects.js index 8559457..c77a456 100644 --- a/packages/orchestration-service/src/routes/projects.js +++ b/packages/orchestration-service/src/routes/projects.js @@ -22,11 +22,11 @@ router.post('/', async (req, res) => { }); router.patch('/:id', async (req, res) => { - try { - res.json(await memory.updateProject(req.params.id, req.body)); - } catch (err) { - res.status(500).json({ error: err.message }); - } + try { + res.json(await memory.updateProject(req.params.id, req.body)); + } catch (err) { + res.status(500).json({ error: err.message }); + } }); router.delete('/:id', async (req, res) => {