CASH-79 move save-session after save quote
CASH-79 move save-session after save quote so that the email is still empty in Dynamo when the save-quote is called
This commit is contained in:
parent
1ddfbfce2f
commit
25717e674b
1 changed files with 8 additions and 6 deletions
|
|
@ -99,6 +99,13 @@ export async function submitWorkOrder({
|
|||
}
|
||||
|
||||
export async function saveQuote({ pageNameToLog }) {
|
||||
await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.SAVE_QUOTE,
|
||||
{},
|
||||
pageNameToLog,
|
||||
false
|
||||
);
|
||||
|
||||
// save session back to sv2 so the email gets saved just in case they refresh or step away and come back later
|
||||
await saveSession({
|
||||
pageNameToLog: pageNameToLog,
|
||||
|
|
@ -107,12 +114,7 @@ export async function saveQuote({ pageNameToLog }) {
|
|||
createUnscheduledStatusWorkOrderForPIA: false,
|
||||
});
|
||||
|
||||
return await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.SAVE_QUOTE,
|
||||
{},
|
||||
pageNameToLog,
|
||||
false
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// PRIVATE FUNCTIONS //
|
||||
|
|
|
|||
Loading…
Reference in a new issue