refactor(actions): include residual axios-risk slices in branch

This commit is contained in:
2026-03-25 09:43:40 +00:00
parent 94e2ed5831
commit ba7d94d83d
4 changed files with 251 additions and 202 deletions
+2 -9
View File
@@ -1,4 +1,3 @@
import axios from "axios";
import { BASE_URL } from "../core/env";
import { consoleLogger } from "../core/logger";
import { buildHashedQueryUrl } from "../clients/relayClient";
@@ -129,7 +128,7 @@ export const deleteMyRepresentations = (myRepresentationsID) => {
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
requestJson({
method: "delete",
url: signedUrl,
headers: {
@@ -142,9 +141,6 @@ export const deleteMyRepresentations = (myRepresentationsID) => {
}
})
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
@@ -170,14 +166,11 @@ export const deleteWatchedCases = async (watchedCaseID) => {
return buildHashedQueryUrl(queryUrl)
.then((signedUrl) =>
axios({
requestJson({
method: "delete",
url: signedUrl
})
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});