Dispo-Option, die HPG validierung nicht zu nutzen
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user