add test notificaiton button and methods
This commit is contained in:
1 parent
1ed317d0cb
commit
e6493df881
8 files changed
+135
-90
No files matched your search
@@ -703,18 +703,11 @@ class NetworkService {
|
||||
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
|
||||
*/
|
||||
async testNotification(config) {
|
||||
return this.axiosInstance.post(
|
||||
"/notifications/test-webhook",
|
||||
{
|
||||
platform: config.platform,
|
||||
...config.payload,
|
||||
return this.axiosInstance.post("/notifications/test", config.notification, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user