refactor(actions): include residual axios-risk slices in branch
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user