Added time Ban and penalty
This commit is contained in:
@@ -29,9 +29,19 @@ export const getConnectedAircraftPositionLogAPI = async ({ id }: { id: number })
|
||||
return res.data;
|
||||
};
|
||||
|
||||
export const kickAircraftAPI = async ({ id, bann }: { id: number; bann?: boolean }) => {
|
||||
export const kickAircraftAPI = async ({
|
||||
id,
|
||||
bann,
|
||||
reason,
|
||||
until = null,
|
||||
}: {
|
||||
id: number;
|
||||
bann?: boolean;
|
||||
reason: string;
|
||||
until?: Date | null;
|
||||
}) => {
|
||||
const res = await serverApi.delete(`/aircrafts/${id}`, {
|
||||
data: { bann },
|
||||
data: { bann, reason, until },
|
||||
});
|
||||
console.log(res.status);
|
||||
if (res.status != 204) {
|
||||
|
||||
Reference in New Issue
Block a user