mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
fix: add missing return
This commit is contained in:
@@ -120,7 +120,7 @@ topicsRouter.put(
|
||||
acronym: req.body.acronym,
|
||||
})
|
||||
.then((topic) => {
|
||||
topic.reload().then((topic) => {
|
||||
return topic.reload().then((topic) => {
|
||||
topic = censorSecretId(topic)
|
||||
res.status(200).json({ topic })
|
||||
})
|
||||
@@ -145,7 +145,7 @@ topicsRouter.put(
|
||||
acronym: req.body.acronym,
|
||||
})
|
||||
.then((topic) => {
|
||||
topic.reload().then((topic) => {
|
||||
return topic.reload().then((topic) => {
|
||||
topic = censorSecretId(topic)
|
||||
res.status(200).json({ topic })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user