mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
[misc] fix express deprecations
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
committed by
Jakob Ackermann
co-authored by
Jakob Ackermann
parent
4ab49ec6c5
commit
7302c0ce0b
@@ -40,7 +40,7 @@ module.exports = {
|
||||
if (err != null) {
|
||||
return res.sendStatus(500)
|
||||
} else {
|
||||
return res.send()
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -57,7 +57,7 @@ module.exports = {
|
||||
return Notifications.removeNotificationId(
|
||||
req.params.user_id,
|
||||
req.params.notification_id,
|
||||
(err, notifications) => res.send()
|
||||
(err, notifications) => res.sendStatus(200)
|
||||
)
|
||||
},
|
||||
|
||||
@@ -70,7 +70,7 @@ module.exports = {
|
||||
return Notifications.removeNotificationKey(
|
||||
req.params.user_id,
|
||||
req.body.key,
|
||||
(err, notifications) => res.send()
|
||||
(err, notifications) => res.sendStatus(200)
|
||||
)
|
||||
},
|
||||
|
||||
@@ -80,7 +80,7 @@ module.exports = {
|
||||
metrics.inc('removeNotificationKey')
|
||||
return Notifications.removeNotificationByKeyOnly(
|
||||
notification_key,
|
||||
(err, notifications) => res.send()
|
||||
(err, notifications) => res.sendStatus(200)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user