[Push API] Response 404 if error, fix #1721

This commit is contained in:
Louis Lam 2022-06-06 22:40:26 +08:00
parent 6ee7b3696a
commit 4fdaa1abb6
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ router.get("/api/push/:pushToken", async (request, response) => {
}
} catch (e) {
response.json({
response.status(404).json({
ok: false,
msg: e.message
});