chore: rename service/thunk files to follow get/fetch naming convention

This commit is contained in:
ISA
2025-06-20 14:07:29 +02:00
parent 0388512f51
commit 38ee1ae381
13 changed files with 25 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ import Footer from "../components/footer/Footer";
import { fetchKueDataThunk } from "../redux/thunks/fetchKueDataThunk";
import { fetchDigitalOutputsThunk } from "../redux/thunks/fetchDigitalOutputsThunk";
import { fetchAnalogInputsThunk } from "../redux/thunks/fetchAnalogInputsThunk";
import { fetchAnalogInputsHistoryThunk } from "../redux/thunks/fetchAnalogInputsHistoryThunk";
import { getAnalogInputsHistoryThunk } from "../redux/thunks/getAnalogInputsHistoryThunk";
import { fetchLast20MessagesThunk } from "../redux/thunks/fetchLast20MessagesThunk";
import { fetchOpcUaSettingsThunk } from "../redux/thunks/fetchOpcUaSettingsThunk";
import { fetchSystemSettingsThunk } from "../redux/thunks/fetchSystemSettingsThunk";
@@ -53,7 +53,7 @@ function AppContent({ Component, pageProps }: AppProps) {
} else if (pathname.includes("analogInputs")) {
dispatch(fetchAnalogInputsThunk());
} else if (pathname.includes("analogHistory")) {
dispatch(fetchAnalogInputsHistoryThunk());
dispatch(getAnalogInputsHistoryThunk());
} else if (pathname.includes("dashboard")) {
dispatch(fetchLast20MessagesThunk());
} else if (pathname.includes("einstellungen")) {

View File

@@ -1,4 +1,4 @@
// /pages/api/cpl/fetchAnalogInputsHistory.ts
// /pages/api/cpl/getAnalogInputsHistory.ts
import path from "path";
import fs from "fs/promises";