Fixed ueberdb2 build. (#6533)

This commit is contained in:
SamTV12345 2024-07-22 21:28:52 +02:00 committed by GitHub
parent 2f41b1b278
commit 8a1a03eca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 336 additions and 181 deletions

View file

@ -21,7 +21,7 @@
* limitations under the License.
*/
import ueberDB from 'ueberdb2';
import {Database} from 'ueberdb2';
const settings = require('../utils/Settings');
import log4js from 'log4js';
const stats = require('../stats')
@ -37,7 +37,7 @@ exports.db = null;
* Initializes the database with the settings provided by the settings module
*/
exports.init = async () => {
exports.db = new ueberDB.Database(settings.dbType, settings.dbSettings, null, logger);
exports.db = new Database(settings.dbType, settings.dbSettings, null, logger);
await exports.db.init();
if (exports.db.metrics != null) {
for (const [metric, value] of Object.entries(exports.db.metrics)) {