mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-07-14 10:36:25 +02:00
Remove Lunasea https://github.com/C9Glax/tranga/issues/389
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import {deleteData, getData, putData} from "../../App";
|
||||
import IGotifyRecord from "../types/records/IGotifyRecord";
|
||||
import INtfyRecord from "../types/records/INtfyRecord";
|
||||
import ILunaseaRecord from "../types/records/ILunaseaRecord";
|
||||
import IPushoverRecord from "../types/records/IPushoverRecord";
|
||||
import INotificationConnector from "../types/INotificationConnector";
|
||||
|
||||
@ -82,21 +81,6 @@ export default class NotificationConnector {
|
||||
});
|
||||
}
|
||||
|
||||
static async CreateLunasea(apiUri: string, lunasea: ILunaseaRecord) : Promise<string> {
|
||||
if(lunasea === undefined || lunasea === null) {
|
||||
console.error(`lunasea was not provided`);
|
||||
return Promise.reject();
|
||||
}
|
||||
//console.info("Getting Notification Connectors");
|
||||
return putData(`${apiUri}/v2/NotificationConnector/Lunasea`, lunasea)
|
||||
.then((json) => {
|
||||
//console.info("Got Notification Connectors");
|
||||
const ret = json as unknown as string;
|
||||
//console.debug(ret);
|
||||
return (ret);
|
||||
});
|
||||
}
|
||||
|
||||
static async CreatePushover(apiUri: string, pushover: IPushoverRecord) : Promise<string> {
|
||||
if(pushover === undefined || pushover === null) {
|
||||
console.error(`pushover was not provided`);
|
||||
|
Reference in New Issue
Block a user