CSR-747 Format
This commit is contained in:
parent
1ba6a13875
commit
8a5b81cb6a
2 changed files with 14 additions and 5 deletions
|
|
@ -69,10 +69,16 @@ export async function saveSession() {
|
|||
Calls API to load session given the referral number, referralDate, and referralCorrelationId
|
||||
and returns the response.
|
||||
*/
|
||||
async function loadSession(savedSessionId, referralNumber, accountNumber, referralCorrelationId, isConceptInsurance) {
|
||||
async function loadSession(
|
||||
savedSessionId,
|
||||
referralNumber,
|
||||
accountNumber,
|
||||
referralCorrelationId,
|
||||
isConceptInsurance
|
||||
) {
|
||||
// await the saveSessionPromise in the store to make sure we're loading up to date information
|
||||
await store.getters.applicationUser.saveSessionPromise;
|
||||
|
||||
|
||||
const response = await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.LOAD_SESSION,
|
||||
{
|
||||
|
|
@ -80,7 +86,7 @@ async function loadSession(savedSessionId, referralNumber, accountNumber, referr
|
|||
referralNumber,
|
||||
accountNumber,
|
||||
referralCorrelationId,
|
||||
isConceptInsurance
|
||||
isConceptInsurance,
|
||||
},
|
||||
false
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1026,9 +1026,12 @@ export const actions = {
|
|||
},
|
||||
});
|
||||
},
|
||||
loadSession(context, { savedSessionId, referralNumber, referralCorrelationId, accountNumber, isConceptInsurance }) {
|
||||
loadSession(
|
||||
context,
|
||||
{ savedSessionId, referralNumber, referralCorrelationId, accountNumber, isConceptInsurance }
|
||||
) {
|
||||
const order = context.state.order;
|
||||
|
||||
|
||||
return globalMethods
|
||||
.callHttpClient({
|
||||
method: endpoints.LoadSession.method,
|
||||
|
|
|
|||
Loading…
Reference in a new issue