Skip to content

Commit

Permalink
fixed db password (ai suggestion)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-SO committed Dec 19, 2024
1 parent 123faf5 commit b9e69fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/databases/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from '@config';
const { host, user, name, password } = config.db;
export const dbConnection = {
url: `mongodb://${user}:${password}@${host}/${name}?authSource=admin&retryWrites=true&w=majority`,
url: `mongodb://${user}:${encodeURIComponent(password)}@${host}/${name}?authSource=admin&retryWrites=true&w=majority`,
// For local development use this url
// url: `mongodb+srv://${user}:${password}@${host}/${name}?authSource=admin`,
options: {
Expand Down

0 comments on commit b9e69fd

Please sign in to comment.