Skip to content

Commit 884d46f

Browse files
mbroadstdaprahamian
authored andcommitted
fix: maintain internal database name on collection rename
1 parent 0afe736 commit 884d46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/operations/rename.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RenameOperation extends OperationBase {
4545
new Collection(
4646
coll.s.db,
4747
coll.s.topology,
48-
coll.databaseName,
48+
coll.s.namespace.db,
4949
newName,
5050
coll.s.pkFactory,
5151
coll.s.options

0 commit comments

Comments
 (0)