added MEasurement-tool, added Dispatch-name auto change
This commit is contained in:
@@ -2,17 +2,6 @@ import { ConnectedAircraft, ConnectedDispatcher, Prisma } from "@repo/db";
|
||||
import { serverApi } from "_helpers/axios";
|
||||
import axios from "axios";
|
||||
|
||||
export const getConnectedUserAPI = async () => {
|
||||
const res = await axios.get<(ConnectedAircraft | ConnectedDispatcher)[]>(
|
||||
"/api/connected-user",
|
||||
{},
|
||||
);
|
||||
if (res.status !== 200) {
|
||||
throw new Error("Failed to fetch Connected User");
|
||||
}
|
||||
return res.data;
|
||||
};
|
||||
|
||||
export const changeDispatcherAPI = async (
|
||||
id: number,
|
||||
data: Prisma.ConnectedDispatcherUpdateInput,
|
||||
Reference in New Issue
Block a user