Skip to content

Commit 07e27c7

Browse files
committed
Remove unnecessary writeOptions use.
1 parent dfb4f4c commit 07e27c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,12 @@ export async function createIndexes(options) {
126126
/**
127127
* Creates a streaming GridFS bucket instance.
128128
*
129-
* By default the writeOptions config value is used for the GridFSBucket
130-
* writeConcern option.
131-
*
132129
* @param {object} options - See GridFSBucket documentation.
133130
*
134131
* @returns {object} The new GridFSBucket instance.
135132
*/
136133
export function createGridFSBucket(options) {
137-
const opts = {...bedrock.config.mongodb.writeOptions, ...options};
138-
return new mongo.GridFSBucket(_db, opts);
134+
return new mongo.GridFSBucket(_db, options);
139135
}
140136

141137
async function _init() {

0 commit comments

Comments
 (0)