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

pull/1727/head
Louis Lam 3 years ago
parent 6ee7b3696a
commit 4fdaa1abb6

@ -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…
Cancel
Save