fix: use buildInfo instead of serverStatus because of authorization problem

pull/2040/head
Joseph Lee 2023-05-18 18:24:42 +09:00
parent c5d3369c8c
commit 4c57ab1388
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ async function checkDatabaseVersion(databaseType) {
let version;
if (databaseType === 'mongodb') {
const query = await prisma.$runCommandRaw({
serverStatus: 1,
buildInfo: 1,
});
version = semver.valid(query.version);
} else {