fix: add missing return

This commit is contained in:
Markus
2026-08-04 17:01:10 +03:00
parent 9480d2bb80
commit e6b93af3db
+2 -2
View File
@@ -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 })
})