From 6e6ebdb93c340f6e2ca82495e6677041d42fd040 Mon Sep 17 00:00:00 2001 From: Tereshchenko Aleksandr Date: Wed, 12 Jun 2024 12:03:14 +0300 Subject: [PATCH] Fix lint issue --- importer-db-api/src/routes/grapa/grapa.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/importer-db-api/src/routes/grapa/grapa.js b/importer-db-api/src/routes/grapa/grapa.js index ca3a11e8..32f5d6bf 100644 --- a/importer-db-api/src/routes/grapa/grapa.js +++ b/importer-db-api/src/routes/grapa/grapa.js @@ -32,11 +32,13 @@ grapaRouter.get('/persons', async (req, res) => { }) grapaRouter.get('/studytracks/:code', async (req, res) => { - const programmes = (await models.Module.findAll({ - where: { - code: req.params.code - } - })).filter(p => !p.validityPeriod.endDate) + const programmes = ( + await models.Module.findAll({ + where: { + code: req.params.code + } + }) + ).filter(p => !p.validityPeriod.endDate) const [studytracks] = await sequelize.query( `