mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Try to fix missing variable in WeKan fails to get MongoDB server version.
Thanks to simon816 and xet7 ! Fixes #4596
This commit is contained in:
parent
2be017cf4a
commit
4941fd183c
1 changed files with 8 additions and 4 deletions
|
|
@ -86,10 +86,14 @@ if (Meteor.isServer) {
|
|||
mongoOplogEnabled = oplogEnabled;
|
||||
} catch (e) {
|
||||
try {
|
||||
const { version } = Promise.await(
|
||||
mongo.db.command({ buildinfo: 1 }),
|
||||
);
|
||||
mongoVersion = version;
|
||||
if (mongo === undefined) {
|
||||
mongoVersion = 'unknown';
|
||||
} else {
|
||||
const { version } = Promise.await(
|
||||
mongo.db.command({ buildinfo: 1 }),
|
||||
);
|
||||
mongoVersion = version;
|
||||
}
|
||||
mongoStorageEngine = 'unknown';
|
||||
} catch (e) {
|
||||
mongoVersion = 'unknown';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue