jaikamat / clubhouse-pos-importer

Monorepo for an LGS's inventory management system
1 stars 0 forks source link

Leverage Mongo connection URI #303

Closed jaikamat closed 3 years ago

jaikamat commented 3 years ago

Summary

Previously we were passing in DATABASE_NAME as an argument to mongoclient.db(), derived from environment variables. However, the node driver client.db() function can optionally take no arguments, deriving its initial database connection from the connection URI itself.

.env and deployment configuration files were edited to use the correct database in their corresponding connection URI's locally.