- fixed cropped live feed and amended APIs for submission
This commit is contained in:
@@ -3,14 +3,14 @@ import { CAM_BASE } from "../utils/config";
|
||||
import type { InitialValuesForm } from "../types/types";
|
||||
|
||||
const getSightingAmend = async () => {
|
||||
const response = await fetch(`${CAM_BASE}/api/fetch-config?id=SightingAmmendA`);
|
||||
const response = await fetch(`${CAM_BASE}/api/fetch-config?id=SightingAmmend`);
|
||||
if (!response.ok) throw new Error("Cannot reach sighting amend endpoint");
|
||||
return response.json();
|
||||
};
|
||||
|
||||
const updateSightingAmend = async (data: InitialValuesForm) => {
|
||||
const updateSightingAmendPayload = {
|
||||
id: "SightingAmmendA",
|
||||
id: "SightingAmmend",
|
||||
fields: [
|
||||
{
|
||||
property: "propOverviewQuality",
|
||||
@@ -22,7 +22,7 @@ const updateSightingAmend = async (data: InitialValuesForm) => {
|
||||
},
|
||||
],
|
||||
};
|
||||
const response = await fetch(`${CAM_BASE}/api/update-config?id=SightingAmmendA`, {
|
||||
const response = await fetch(`${CAM_BASE}/api/update-config`, {
|
||||
method: "Post",
|
||||
body: JSON.stringify(updateSightingAmendPayload),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user