fix: System Data from API fpr dev
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// /redux/thunks/fetchSystemSettingsThunk.ts
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit";
|
||||
import { fetchSystemSettings } from "../../services/fetchSystemSettingsService";
|
||||
import { fetchSystemService } from "../../services/fetchSystemService";
|
||||
import { setSystemSettings } from "../slices/systemSettingsSlice";
|
||||
|
||||
export const fetchSystemSettingsThunk = createAsyncThunk(
|
||||
"systemSettings/fetch",
|
||||
async (_, { dispatch }) => {
|
||||
const data = await fetchSystemSettings();
|
||||
const data = await fetchSystemService();
|
||||
if (data) dispatch(setSystemSettings(data));
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user