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

@@ -0,0 +1,15 @@
// /redux/thunks/getAnalogInputsHistoryThunk.ts
import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchAnalogInputsHistoryService } from "@/services/fetchAnalogInputsHistoryService";
export const getAnalogInputsHistoryThunk = createAsyncThunk(
"analogInputsHistory/fetch",
async (_, { rejectWithValue }) => {
try {
const data = await fetchAnalogInputsHistoryService();
return data;
} catch (error: any) {
return rejectWithValue(error.message || "Unbekannter Fehler");
}
}
);