refactoring

This commit is contained in:
ISA
2025-05-26 09:14:13 +02:00
parent 34f460902e
commit 90db829095
15 changed files with 21 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
// /redux/thunks/database/fetchPoiTypThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchPoiTypService } from "../../../../services/database/pois/fetchPoiTypService";
export const fetchPoiTypThunk = createAsyncThunk("poiTyp/fetch", async (_, thunkAPI) => {
try {
return await fetchPoiTypService();
} catch (err) {
return thunkAPI.rejectWithValue(err.message);
}
});