updated weatched case for tickent number

This commit is contained in:
2025-08-13 09:58:39 +01:00
parent 664d0dd787
commit fc1f63f388
4 changed files with 40 additions and 12 deletions
+7 -9
View File
@@ -1431,7 +1431,7 @@ export const deleteMyRepresentationsFromBlob = (
});
};
export const deleteWatchedCases = (watchedCaseID) => {
export const deleteWatchedCases = async (watchedCaseID) => {
var queryUrl =
"/api/endpoint/deletewatchedcases_api?watchedCaseID=" + watchedCaseID;
var config = {
@@ -1439,14 +1439,12 @@ export const deleteWatchedCases = (watchedCaseID) => {
url: queryUrl,
};
return axios(config)
.then((res) => {
//console.log("deleted ", res.data);
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
try {
const res = await axios(config);
return res.data;
} catch (error) {
consoleLogger(error);
}
};
export const createAccount = (formValues) => {