Skip to content

Commit 478ea4d

Browse files
committed
Remove unused background option from mongodb index creation.
1 parent 8b2722a commit 478ea4d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Return passed `record` instead of resulting record from mongodb calls to
77
enable using newer mongodb driver.
88
- Use `result.modifiedCount` to enable newer mongodb driver.
9+
- Remove unused `background` option from mongodb index creation.
910

1011
## 10.1.0 - 2025-01-23
1112

lib/storage/ConfigStorage.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ function _createStorageInitializer({collectionName} = {}) {
301301
// cover queries config by ID
302302
collection: collectionName,
303303
fields: {'config.id': 1},
304-
options: {unique: true, background: false}
304+
options: {unique: true}
305305
}, {
306306
// cover config queries by controller
307307
collection: collectionName,
308308
fields: {'config.controller': 1},
309-
options: {unique: false, background: false}
309+
options: {unique: false}
310310
}, {
311311
// cover counting configs in use by meter ID, if present
312312
collection: collectionName,
@@ -315,7 +315,7 @@ function _createStorageInitializer({collectionName} = {}) {
315315
partialFilterExpression: {
316316
'config.meterId': {$exists: true}
317317
},
318-
unique: false, background: false
318+
unique: false
319319
}
320320
}]);
321321
});

0 commit comments

Comments
 (0)