fix RN mobile api
This commit is contained in:
parent
39af99fa6e
commit
818358cc68
@ -38,7 +38,7 @@ router.post(
|
||||
async (req: Request, res: Response) => {
|
||||
const body = req.body as DeviceNotificationSchema;
|
||||
if (body.provider != "webpush")
|
||||
throw new HTTPError("Provider is not supported", 400);
|
||||
return res.sendStatus(204);
|
||||
|
||||
if (!Config.get().webPush.enabled || !vapidConfigured)
|
||||
throw new HTTPError("WebPush notifications are not configured", 400);
|
||||
|
||||
Reference in New Issue
Block a user