Skip to content

Commit 4df5b41

Browse files
committed
style(MongoMemoryServer::createAuth): change comment to make more sense
1 parent 5817244 commit 4df5b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/MongoMemoryServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ export class MongoMemoryServer extends EventEmitter implements ManagerAdvanced {
757757
return -1; // try to make all "admin" at the start of the array
758758
}
759759

760-
return a.database === b.database ? 0 : 1; // "0" to sort same databases continuesly, "-1" if nothing before/above applies
760+
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
761761
});
762762

763763
for (const user of this.auth.extraUsers) {

0 commit comments

Comments
 (0)