mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-11-08 07:20:59 +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, {
|
||||
bucketName: this.bucketName,
|
||||
chunkSizeBytes: 255 * 1024,
|
||||
writeConcern: { w: 'majority' }
|
||||
writeConcern: { w: (options.options && options.options.writeConcern) || 'majority' }
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue