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:
CarlNation 2025-01-14 11:30:28 -05:00
parent 1ddfbfce2f
commit 25717e674b

View file

@ -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 //