File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
packages/data-service/src Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
const { debug, log } = createLoggerAndTelemetry ( 'COMPASS-CONNECT' ) ;
20
20
21
21
export default async function connectMongoClientCompass (
22
- connectionOptions : ConnectionOptions ,
22
+ connectionOptions : Readonly < ConnectionOptions > ,
23
23
setupListeners : ( client : MongoClient ) => void
24
24
) : Promise <
25
25
[
@@ -42,10 +42,13 @@ export default async function connectMongoClientCompass(
42
42
} ;
43
43
44
44
if ( options . autoEncryption && process . env . COMPASS_CSFLE_LIBRARY_PATH ) {
45
- options . autoEncryption . extraOptions = {
46
- ...options . autoEncryption . extraOptions ,
47
- // @ts -expect-error next driver release has types
48
- csflePath : process . env . COMPASS_CSFLE_LIBRARY_PATH ,
45
+ options . autoEncryption = {
46
+ ...options . autoEncryption ,
47
+ extraOptions : {
48
+ ...options . autoEncryption ?. extraOptions ,
49
+ // @ts -expect-error next driver release has types
50
+ csflePath : process . env . COMPASS_CSFLE_LIBRARY_PATH ,
51
+ } ,
49
52
} ;
50
53
}
51
54
You can’t perform that action at this time.
0 commit comments