Merge branch 'develop' of bitbucket.org:mavsystemsltd/mav-in-car-fe into feature/soundsettings
This commit is contained in:
@@ -13,16 +13,14 @@ async function zoomIn(options: ZoomInOptions) {
|
||||
if (!response.ok) {
|
||||
throw new Error("Cannot reach camera zoom endpoint");
|
||||
}
|
||||
const data = await response.json();
|
||||
console.log(data);
|
||||
return;
|
||||
|
||||
return response.json();
|
||||
}
|
||||
|
||||
async function fetchZoomInConfig({
|
||||
queryKey,
|
||||
}: QueryFunctionContext<[string, zoomConfig]>) {
|
||||
const [, { camera }] = queryKey;
|
||||
console.log(camera);
|
||||
const response = await fetch(`${CAM_BASE}/Ip${camera}-inspect`);
|
||||
if (!response.ok) {
|
||||
throw new Error("Cannot get camera zoom settings");
|
||||
|
||||
Reference in New Issue
Block a user