mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-11-11 17:00:37 +08:00
allow setting writeConcern for gridstore
This commit is contained in:
parent
dfedf879f3
commit
c4c350fcef
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class GridstoreStorage {
|
||||||
this.gridstore = new GridFSBucket(this.gridfs, {
|
this.gridstore = new GridFSBucket(this.gridfs, {
|
||||||
bucketName: this.bucketName,
|
bucketName: this.bucketName,
|
||||||
chunkSizeBytes: 255 * 1024,
|
chunkSizeBytes: 255 * 1024,
|
||||||
writeConcern: { w: 'majority' }
|
writeConcern: { w: (options.options && options.options.writeConcern) || 'majority' }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue