@apify/utilities 2.35.0 → 2.35.1
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 +1 -9
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +1 -9
- package/esm/index.mjs.map +1 -1
- package/package.json +4 -4
package/esm/index.mjs
CHANGED
|
@@ -1714,15 +1714,7 @@ var _HealthChecker = class _HealthChecker {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
1716
|
async _testMongoDbPing({ client }) {
|
|
1717
|
-
const response = await client.command(
|
|
1718
|
-
{ ping: 1 },
|
|
1719
|
-
{
|
|
1720
|
-
readPreference: {
|
|
1721
|
-
readPreference: "nearest",
|
|
1722
|
-
readPreferenceTags: [{ nodeType: "ELECTABLE" }]
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
);
|
|
1717
|
+
const response = await client.command({ ping: 1 });
|
|
1726
1718
|
if (response.ok !== 1) throw new Error(`Got ${response.ok} instead of 1!`);
|
|
1727
1719
|
}
|
|
1728
1720
|
async _testMongoDbRead({ client }) {
|