I\'m trying to refactor some code because of an updated dependencies, a function now return a promise. So I am trying to use async await.
Here is the original code