peerplays-network / Block-Exporter

2 stars 1 forks source link

Hardcoded database name in SQL queries #2

Open farisshajahan opened 4 years ago

farisshajahan commented 4 years ago

The database to be used and connected has been specified in the server/database/constants.js file. Once the connection is made, SQL queries must not contain the database names. However, the database name 'explorer' has been hardcoded in SQL queries present in several files like server/index.js or server/api/index.js etc.

bobinson commented 4 years ago

The hard coded queries should be replaced and moved to migrations