hey folks, anyone here that knows why workflow. va...
# 🌎general
c
hey folks, anyone here that knows why workflow. variables cannot be accessed within async functions ?
Copy code
js

async function storeUpdate() {
  try {
    const storecoord = await updateClientLocationAndFindStores();
    console.log('Closest stores for the client:', storecoord);
    workflow.closestStores = storecoord
   } catch (error) {
    console.error('Error occurred:', error);
  }
}

storeUpdate();