-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
Across the codebase we have asynchronous code written using promises, which is hard to read and to maintain and error-prone.
All this code needs to be rewritten using the async/await syntax.
If you want to work on this, please create a sub-ticket for the file or section of the code you want to convert, and assign that sub-ticket to you (or ask me [monkey] to do it for you )
One golden rule for async/await: be sure to catch potential errors thrown by the code, otherwise an uncaught error could crash the server.
Some reading material:
https://catchjs.com/Docs/AsyncAwait
http://thecodebarbarian.com/async-await-error-handling-in-javascript.html
1.
|
Convert promises in all entity server routes | Review Submitted | Tarun | |
2.
|
Convert promises in src/api/helpers/utils.js | Open | Mokshagna |