fix up/download scheduler files

This commit is contained in:
MichaelDvP
2023-03-22 17:33:34 +01:00
parent a5d2beb3e7
commit aea2277e26
4 changed files with 20 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ const GeneralFileUpload: FC<UploadFileProps> = ({ uploadGeneralFile }) => {
const downloadSchedule = async () => {
try {
const response = await EMSESP.readSchedule();
const response = await EMSESP.getSchedule();
if (response.status !== 200) {
toast.error(LL.PROBLEM_LOADING());
} else {

View File

@@ -96,6 +96,10 @@ export function getCustomizations(): AxiosPromise<void> {
return AXIOS.get('/getCustomizations');
}
export function getSchedule(): AxiosPromise<Schedule> {
return AXIOS.get('/getSchedule');
}
export function readSchedule(): AxiosPromise<Schedule> {
return AXIOS.get('/schedule');
}