@apify/utilities 2.34.2 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +9 -1
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +9 -1
- package/esm/index.mjs.map +1 -1
- package/package.json +4 -4
package/cjs/index.cjs
CHANGED
|
@@ -1801,7 +1801,15 @@ var _HealthChecker = class _HealthChecker {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
}
|
|
1803
1803
|
async _testMongoDbPing({ client }) {
|
|
1804
|
-
const response = await client.command(
|
|
1804
|
+
const response = await client.command(
|
|
1805
|
+
{ ping: 1 },
|
|
1806
|
+
{
|
|
1807
|
+
readPreference: {
|
|
1808
|
+
readPreference: "nearest",
|
|
1809
|
+
readPreferenceTags: [{ nodeType: "ELECTABLE" }]
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
);
|
|
1805
1813
|
if (response.ok !== 1) throw new Error(`Got ${response.ok} instead of 1!`);
|
|
1806
1814
|
}
|
|
1807
1815
|
async _testMongoDbRead({ client }) {
|