Skip to content

Commit 0ed539e

Browse files
authored
fix(server): fix being failed to find address when connect ddb (#1771)
1 parent 667e3d4 commit 0ed539e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/database/dedicated-database/dedicated-database.service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ export class DedicatedDatabaseService {
196196
database: database.name,
197197
options: {
198198
authSource: 'admin',
199+
replicaSet: `${name}-mongodb`,
200+
w: 'majority',
199201
},
200202
scheme: 'mongodb',
201203
})

0 commit comments

Comments
 (0)