Dispo-Option, die HPG validierung nicht zu nutzen

This commit is contained in:
PxlLoewe
2025-11-27 22:21:27 +01:00
parent 6a739f4871
commit b9e871ae01
17 changed files with 138 additions and 39 deletions

View File

@@ -14,11 +14,14 @@ export const changeDispatcherAPI = async (
};
export const getConnectedDispatcherAPI = async (filter?: Prisma.ConnectedDispatcherWhereInput) => {
const res = await axios.get<ConnectedDispatcher[]>("/api/dispatcher", {
params: {
filter: JSON.stringify(filter),
const res = await axios.get<(ConnectedDispatcher & { settingsUseHPGAsDispatcher: boolean })[]>(
"/api/dispatcher",
{
params: {
filter: JSON.stringify(filter),
},
},
});
);
if (res.status !== 200) {
throw new Error("Failed to fetch Connected Dispatcher");
}