Skip to content

Commit 03cc91f

Browse files
committed
fix: remove unnecessary workaround for #15315 now that #15378 is fixed
1 parent 2bf2105 commit 03cc91f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/helpers/populate/assignRawDocsToIdStructure.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,7 @@ function assignRawDocsToIdStructure(rawIds, resultDocs, resultOrder, options, re
7878
continue;
7979
}
8080

81-
if (id?.constructor?.name === 'Binary' && id.sub_type === 4 && typeof id.toUUID === 'function') {
82-
// Workaround for gh-15315 because Mongoose UUIDs don't use BSON UUIDs yet.
83-
sid = String(id.toUUID());
84-
} else {
85-
sid = String(id);
86-
}
81+
sid = String(id);
8782
doc = resultDocs[sid];
8883
// If user wants separate copies of same doc, use this option
8984
if (options.clone && doc != null) {

0 commit comments

Comments
 (0)