mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 04:55:36 +01:00
fix: use buildInfo instead of serverStatus because of authorization problem
This commit is contained in:
parent
c5d3369c8c
commit
4c57ab1388
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ async function checkDatabaseVersion(databaseType) {
|
||||||
let version;
|
let version;
|
||||||
if (databaseType === 'mongodb') {
|
if (databaseType === 'mongodb') {
|
||||||
const query = await prisma.$runCommandRaw({
|
const query = await prisma.$runCommandRaw({
|
||||||
serverStatus: 1,
|
buildInfo: 1,
|
||||||
});
|
});
|
||||||
version = semver.valid(query.version);
|
version = semver.valid(query.version);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue