If I call my own API inside the log() and previouslyLogged(), is it possible to use Promises or async/await to get the result of the API call? For example if I want to have an endpoint that writes the event to an external log inside log(), and then another endpoint that reads the log to determine if the event was previouslyLogged().
If I call my own API inside the
log()andpreviouslyLogged(), is it possible to use Promises or async/await to get the result of the API call? For example if I want to have an endpoint that writes the event to an external log insidelog(), and then another endpoint that reads the log to determine if the event waspreviouslyLogged().