From d033baa13a55c5fbe603d6d02393be53e3a2f346 Mon Sep 17 00:00:00 2001 From: Ismail Ali Date: Tue, 15 Apr 2025 10:44:42 +0200 Subject: [PATCH] fix: System Data from API fpr dev --- config/webVersion.ts | 2 +- .../cpl/{systemSettingsAPIHandler.ts => systemAPIHandler.ts} | 2 +- redux/thunks/fetchSystemSettingsThunk.ts | 4 ++-- .../{fetchSystemSettingsService.ts => fetchSystemService.ts} | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename pages/api/cpl/{systemSettingsAPIHandler.ts => systemAPIHandler.ts} (91%) rename services/{fetchSystemSettingsService.ts => fetchSystemService.ts} (93%) diff --git a/config/webVersion.ts b/config/webVersion.ts index f29d94a..cb542bd 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.224"; +const webVersion = "1.6.225"; export default webVersion; diff --git a/pages/api/cpl/systemSettingsAPIHandler.ts b/pages/api/cpl/systemAPIHandler.ts similarity index 91% rename from pages/api/cpl/systemSettingsAPIHandler.ts rename to pages/api/cpl/systemAPIHandler.ts index 94281c4..0be71ab 100644 --- a/pages/api/cpl/systemSettingsAPIHandler.ts +++ b/pages/api/cpl/systemAPIHandler.ts @@ -1,4 +1,4 @@ -// /pages/api/cpl/systemSettingsAPIHandler.ts +// /pages/api/cpl/systemAPIHandler.ts import { NextApiRequest, NextApiResponse } from "next"; import path from "path"; diff --git a/redux/thunks/fetchSystemSettingsThunk.ts b/redux/thunks/fetchSystemSettingsThunk.ts index b7ad9a7..e176fa8 100644 --- a/redux/thunks/fetchSystemSettingsThunk.ts +++ b/redux/thunks/fetchSystemSettingsThunk.ts @@ -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)); } ); diff --git a/services/fetchSystemSettingsService.ts b/services/fetchSystemService.ts similarity index 93% rename from services/fetchSystemSettingsService.ts rename to services/fetchSystemService.ts index 8a584a3..bc684ad 100644 --- a/services/fetchSystemSettingsService.ts +++ b/services/fetchSystemService.ts @@ -1,5 +1,5 @@ -// /services/fetchSystemSettingsService.ts -export const fetchSystemSettingsService = async () => { +// /services/fetchSystemService.ts +export const fetchSystemService = async () => { try { if (typeof window === "undefined") return null;