We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f751544 commit 6950e94Copy full SHA for 6950e94
index.js
@@ -170,14 +170,14 @@ async function initialise() {
170
),
171
);
172
173
- if (!config.mongoUri && !mongoUriValues.size()) {
+ if (!config.mongoUri && !mongoUriValues.size) {
174
logError('No MongoDB URI provided');
175
throw new Error('No MongoDB URI provided');
176
}
177
178
if (
179
- mongoUriValues.size() > 1 ||
180
- (mongoUriValues.size() &&
+ mongoUriValues.size > 1 ||
+ (mongoUriValues.size &&
181
config.mongoUri !== mongoUriValues.values().next())
182
) {
183
logError(
0 commit comments