chore: rename service/thunk files to follow get/fetch naming convention
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// /pages/api/cpl/fetchAnalogInputsHistory.ts
|
||||
// /pages/api/cpl/getAnalogInputsHistory.ts
|
||||
|
||||
import path from "path";
|
||||
import fs from "fs/promises";
|
||||
Reference in New Issue
Block a user