refactor(actions): complete priority-1 consumer import migration pass
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
import { getSession } from "next-auth/react";
|
||||
import {
|
||||
getAppealsTypesForNewAppeal,
|
||||
getMandatoryFields,
|
||||
getPickLists
|
||||
} from "../../actions/services/referenceDataService";
|
||||
import {
|
||||
getAwaitingSubmissionFromBlob,
|
||||
getFilesFromBlob,
|
||||
getIP,
|
||||
getMandatoryFields,
|
||||
getPickLists,
|
||||
getProgressFromBlob,
|
||||
getPersonalAccount,
|
||||
} from "../../actions";
|
||||
getProgressFromBlob
|
||||
} from "../../actions/services/documentService";
|
||||
import { getPersonalAccount } from "../../actions/services/accountService";
|
||||
import { getIP } from "../../actions/core/logger";
|
||||
|
||||
import { readFormXml } from "../forms/readFormXml";
|
||||
import { requireQueryParams } from "../routing/requireQueryParams";
|
||||
@@ -27,7 +29,7 @@ export async function loadMyPortalAppealPage(ctx) {
|
||||
const required = requireQueryParams(query, [
|
||||
"appealtypes",
|
||||
"apt",
|
||||
"casereference",
|
||||
"casereference"
|
||||
]);
|
||||
if (!required.ok) {
|
||||
return { redirect: required.redirect };
|
||||
@@ -38,8 +40,8 @@ export async function loadMyPortalAppealPage(ctx) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/auth/signin",
|
||||
permanent: false,
|
||||
},
|
||||
permanent: false
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -56,7 +58,7 @@ export async function loadMyPortalAppealPage(ctx) {
|
||||
getAppealsTypesForNewAppeal(),
|
||||
getMandatoryFields(query.appealtypes),
|
||||
getPickLists(query.appealtypes),
|
||||
getFilesFromBlob(loggedInUserIdent, query.casereference),
|
||||
getFilesFromBlob(loggedInUserIdent, query.casereference)
|
||||
]);
|
||||
|
||||
const blobProgress = await getProgressFromBlob(
|
||||
@@ -86,6 +88,6 @@ export async function loadMyPortalAppealPage(ctx) {
|
||||
blobProgress,
|
||||
accountDetails,
|
||||
awaitingSubmissionFromBlob,
|
||||
xmlStr,
|
||||
xmlStr
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
import { getSession } from "next-auth/react";
|
||||
import {
|
||||
getAppealsTypesForNewAppeal,
|
||||
getIP,
|
||||
getMandatoryFields,
|
||||
getPickLists,
|
||||
getProgressFromBlob,
|
||||
getPersonalAccount,
|
||||
} from "../../actions";
|
||||
getPickLists
|
||||
} from "../../actions/services/referenceDataService";
|
||||
import { getProgressFromBlob } from "../../actions/services/documentService";
|
||||
import { getPersonalAccount } from "../../actions/services/accountService";
|
||||
import { getIP } from "../../actions/core/logger";
|
||||
import { readFormXml } from "../forms/readFormXml";
|
||||
import { requireQueryParams } from "../routing/requireQueryParams";
|
||||
|
||||
@@ -32,8 +32,8 @@ export async function loadNewAppealPage(ctx) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/auth/signin",
|
||||
permanent: false,
|
||||
},
|
||||
permanent: false
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export async function loadNewAppealPage(ctx) {
|
||||
await Promise.all([
|
||||
getAppealsTypesForNewAppeal(),
|
||||
getMandatoryFields(query.appealtypes),
|
||||
getPickLists(query.appealtypes),
|
||||
getPickLists(query.appealtypes)
|
||||
]);
|
||||
|
||||
const blobProgress = await getProgressFromBlob(loggedInUserIdent, query.id);
|
||||
@@ -64,6 +64,6 @@ export async function loadNewAppealPage(ctx) {
|
||||
pickListData,
|
||||
blobProgress,
|
||||
accountDetails,
|
||||
xmlStr,
|
||||
xmlStr
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user