File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ export class DropCollectionOperation extends CommandOperation<boolean> {
51
51
encryptedFields = listCollectionsResult ?. [ 0 ] ?. options ?. encryptedFields ;
52
52
}
53
53
54
+ // Spec tests expect the main collection to be dropped first.
55
+ const result = await this . executeWithoutEncryptedFieldsCheck ( server , session ) ;
56
+
54
57
if ( encryptedFields ) {
55
58
const escCollection = encryptedFields . escCollection || `enxcol_.${ name } .esc` ;
56
59
const eccCollection = encryptedFields . eccCollection || `enxcol_.${ name } .ecc` ;
@@ -71,8 +74,7 @@ export class DropCollectionOperation extends CommandOperation<boolean> {
71
74
}
72
75
}
73
76
}
74
-
75
- return await this . executeWithoutEncryptedFieldsCheck ( server , session ) ;
77
+ return result ;
76
78
} ) ( ) . then (
77
79
result => callback ( undefined , result ) ,
78
80
err => callback ( err )
You can’t perform that action at this time.
0 commit comments