refactor(scanner): more scanner admin stuff
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { keepPreviousData, queryOptions } from "@tanstack/react-query";
|
||||
import axios from "axios";
|
||||
|
||||
import { api } from "../apiHelper";
|
||||
|
||||
export function getScannerIds() {
|
||||
return queryOptions({
|
||||
@@ -16,10 +17,7 @@ const fetch = async () => {
|
||||
await new Promise((res) => setTimeout(res, 1500));
|
||||
}
|
||||
|
||||
const { data } = await axios.get("/lst/api/mobile/available", {
|
||||
withCredentials: true,
|
||||
timeout: 5000,
|
||||
});
|
||||
const { data } = await api.get("/mobile/available");
|
||||
|
||||
return data.data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user