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 5817244 commit 4df5b41Copy full SHA for 4df5b41
packages/mongodb-memory-server-core/src/MongoMemoryServer.ts
@@ -757,7 +757,7 @@ export class MongoMemoryServer extends EventEmitter implements ManagerAdvanced {
757
return -1; // try to make all "admin" at the start of the array
758
}
759
760
- return a.database === b.database ? 0 : 1; // "0" to sort same databases continuesly, "-1" if nothing before/above applies
+ return a.database === b.database ? 0 : 1; // "0" to sort all databases that are the same after each other, and "1" to for pushing it back
761
});
762
763
for (const user of this.auth.extraUsers) {
0 commit comments