Skip to content

Commit

Permalink
fix: maintain internal database name on collection rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored and daprahamian committed Aug 13, 2019
1 parent 0afe736 commit 884d46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/operations/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RenameOperation extends OperationBase {
new Collection(
coll.s.db,
coll.s.topology,
coll.databaseName,
coll.s.namespace.db,
newName,
coll.s.pkFactory,
coll.s.options
Expand Down

0 comments on commit 884d46f

Please sign in to comment.