Fix response not defined for WPush Notification Provider

pull/4603/head
Alone88 1 month ago committed by GitHub
parent b03b0009f4
commit 478cd0b8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,7 @@ class WPush extends NotificationProvider {
};
const result = await axios.post("https://api.wpush.cn/api/v1/send", context);
if (result.data.code !== 0) {
throw response.data.message;
throw result.data.message;
}
return okMsg;

Loading…
Cancel
Save