mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Updater] Fix sendToSlack call to await its completion
This commit is contained in:
@@ -70,7 +70,7 @@ app.post('/v1/studyplans', async (req, res) => {
|
||||
const { studentnumbers } = req.body
|
||||
const msg = `Scheduling update of ${studentnumbers.length} students whose studyplan has not been updated recently`
|
||||
logger.info(msg)
|
||||
sendToSlack(msg)
|
||||
await sendToSlack(msg)
|
||||
await scheduleByStudentNumbers(studentnumbers)
|
||||
res.locals.msg('Shceduled studyplans update')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user