refactor phase 3a api-file chunk 1 targeted actions imports
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { hashAPIPath, updateAccount } from "../../../actions";
|
||||
import { updateAccount } from "../../../actions/services/accountService";
|
||||
import {
|
||||
createCaseCompleteMessage,
|
||||
getProgressBlobs,
|
||||
downloadProgressFile,
|
||||
createBlob,
|
||||
getCaseBlob,
|
||||
getCaseBlob
|
||||
} from "../../../actions/azurestorage";
|
||||
import _ from "lodash";
|
||||
|
||||
@@ -44,7 +44,7 @@ ApiProxy.get(async (req, res) => {
|
||||
);
|
||||
|
||||
Object.assign(blobProgress, {
|
||||
"appealComplete": tempCaseRef,
|
||||
"appealComplete": tempCaseRef
|
||||
});
|
||||
|
||||
delete blobProgress["pinswg_name"];
|
||||
@@ -75,7 +75,7 @@ ApiProxy.get(async (req, res) => {
|
||||
"pinswg_lpareference":
|
||||
blobProgress.pinswg_lpaapplicationreference,
|
||||
"description": blobProgress.pinswg_developmentdescription,
|
||||
"pinswg_caseaddress": combinedAddress,
|
||||
"pinswg_caseaddress": combinedAddress
|
||||
});
|
||||
|
||||
//send update case.json and then create queue message
|
||||
@@ -87,7 +87,7 @@ ApiProxy.get(async (req, res) => {
|
||||
updateAccount(
|
||||
contactId[1],
|
||||
{
|
||||
"pinswg_typeofinvolvement": 846040001,
|
||||
"pinswg_typeofinvolvement": 846040001
|
||||
},
|
||||
true
|
||||
).then((data) => {
|
||||
@@ -104,7 +104,7 @@ ApiProxy.get(async (req, res) => {
|
||||
|
||||
createCaseCompleteMessage(containerName, tempCaseRef);
|
||||
return res.status(200).json({
|
||||
status: "success",
|
||||
status: "success"
|
||||
});
|
||||
});
|
||||
})
|
||||
@@ -136,8 +136,8 @@ ApiProxy.get(async (req, res) => {
|
||||
|
||||
export const config = {
|
||||
api: {
|
||||
bodyParser: false,
|
||||
},
|
||||
bodyParser: false
|
||||
}
|
||||
};
|
||||
|
||||
export default ApiProxy;
|
||||
|
||||
Reference in New Issue
Block a user