simnova / ownercommunity

MIT License
2 stars 1 forks source link

add local settings for db connect #133

Closed nguyenduy closed 1 month ago

nguyenduy commented 1 month ago

Summary by Sourcery

Updated the database connection logic to use a specific 'CosmosDbConnection' instance, allowing for more detailed configuration through environment variables.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request adds local settings for database connection by replacing the existing connect function with a new CosmosDbConnection instance. It also reorders some import statements for better organization.

File-Level Changes

Files Changes
data-access/src/init/index.ts Replaced the connect function with a new CosmosDbConnection instance and reordered import statements.