We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b1825 commit a1c6bd3Copy full SHA for a1c6bd3
1 file changed
packages/backends/mongo/src/mongo-backend.ts
@@ -49,10 +49,8 @@ export default class MongoBackend implements Backend {
49
private _connected: boolean;
50
51
constructor(mongoUrl: string) {
52
- const url = new URL(mongoUrl);
53
- const dbName = url.pathname && url.pathname !== "/" ? url.pathname.replace(/^\//, "") : "test";
54
this.client = new MongoClient(mongoUrl, { ignoreUndefined: true });
55
- this.db = this.client.db(dbName);
+ this.db = this.client.db();
56
this.jobs = this.db.collection<JobData>("sidequest_jobs");
57
this.queues = this.db.collection<QueueConfig>("sidequest_queues");
58
this.counters = this.db.collection("sidequest_counters");
0 commit comments