Commit fc05549a authored by Sean Arnold's avatar Sean Arnold

Fix some failing specs

parent a6cbb088
......@@ -7,23 +7,23 @@ function replaceModelIId(payload = {}) {
}
export const getMetricImages = async (payload) => {
const apiPayload = replaceModelIId(payload);
const response = await Api.fetchIssueMetricImages(apiPayload);
payload = replaceModelIId(payload);
const response = await Api.fetchIssueMetricImages(payload);
return convertObjectPropsToCamelCase(response.data, { deep: true });
};
export const uploadMetricImage = async (payload) => {
const apiPayload = replaceModelIId(payload);
const response = await Api.uploadIssueMetricImage(apiPayload);
payload = replaceModelIId(payload);
const response = await Api.uploadIssueMetricImage(payload);
return convertObjectPropsToCamelCase(response.data);
};
export const updateMetricImage = async (payload) => {
const apiPayload = replaceModelIId(payload);
const response = await Api.updateIssueMetricImage(apiPayload);
payload = replaceModelIId(payload);
const response = await Api.updateIssueMetricImage(payload);
return convertObjectPropsToCamelCase(response.data);
};
export const deleteMetricImage = async (payload) => {
const apiPayload = replaceModelIId(payload);
const response = await Api.deleteMetricImage(apiPayload);
payload = replaceModelIId(payload);
const response = await Api.deleteMetricImage(payload);
return convertObjectPropsToCamelCase(response.data);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment