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 368dc92 commit d47355dCopy full SHA for d47355d
packages/mongodb-build-info/src/index.ts
@@ -161,10 +161,15 @@ export async function identifyServerName(
161
return 'firestore';
162
}
163
164
- const buildInfo = await runCommand({ buildInfo: 1 });
+ try {
165
+ const buildInfo = await adminCommand({ buildInfo: 1 });
166
- if ('ferretdb' in buildInfo) {
167
- return 'ferretdb';
+ if ('ferretdb' in buildInfo) {
168
+ return 'ferretdb';
169
+ }
170
+ } catch (error) {
171
+ debug('buildInfo command failed %O', error);
172
+ return 'unknown';
173
174
175
try {
0 commit comments