I had a bug that a function was declared with async keyword even though it was a synchronous function.
when this function was called in another function, there was a problem that the function changes weren’t available to another function right below.
when I added await – it seems to fixed it.
I don’t understand why. if it was a synchronous function that warped in a promise why did it needed to be blocked with await? or am I missing something