All the backend DB code looks like a mess. This is in part because I chose to use the mysql node module, which does not have promise support. However, there exists and extension of this module, called mysql2. This module has support for promises, which would make the code cleaner and just generally better.
All the backend DB code looks like a mess. This is in part because I chose to use the mysql node module, which does not have promise support. However, there exists and extension of this module, called mysql2. This module has support for promises, which would make the code cleaner and just generally better.