mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 18:38:07 +00:00
[Push API] Response 404 if error, fix #1721
This commit is contained in:
parent
6ee7b3696a
commit
4fdaa1abb6
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ router.get("/api/push/:pushToken", async (request, response) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
response.json({
|
response.status(404).json({
|
||||||
ok: false,
|
ok: false,
|
||||||
msg: e.message
|
msg: e.message
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue