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

@@ -17,7 +17,7 @@ import "chartjs-adapter-date-fns";
import { de } from "date-fns/locale";
import { useSelector, useDispatch } from "react-redux";
import type { RootState, AppDispatch } from "../../../redux/store";
import { fetchAnalogInputsHistoryThunk } from "../../../redux/thunks/fetchAnalogInputsHistoryThunk";
import { getAnalogInputsHistoryThunk } from "@/redux/thunks/getAnalogInputsHistoryThunk";
ChartJS.register(
LineElement,
@@ -41,7 +41,7 @@ export default function AnalogInputsChart({
);
useEffect(() => {
dispatch(fetchAnalogInputsHistoryThunk());
dispatch(getAnalogInputsHistoryThunk());
}, [dispatch]);
if (!selectedId) {