I got a failed execution (the function is executed by event when creating new user or new session) ,
But base on my logs
Event type is not sessions
Creating document by name Asnawe Banto
Document created successfully
And base on my error:
The result must be successfull not error
TL;DR
The user discovered that a function was not returning the expected result and was causing an error. They realized that they forgot to use the return keyword in the function. By including the return keyword, the function executed successfully without any errors. The issue has been solved.