Open suprjinx opened 1 year ago
database.ConnectDB() has the side-effect of setting a global variable to hold the DB connection instance. We should remove the dependence on the global var (I see 71 usages across 11 files), and then remove the ConnectDB function as well.
database.ConnectDB() has the side-effect of setting a global variable to hold the DB connection instance. We should remove the dependence on the global var (I see 71 usages across 11 files), and then remove the ConnectDB function as well.