From 68e0cdd6f5882fcb845d5289a7cab81230a65e0b Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 15 Jan 2022 14:39:30 +0100 Subject: [PATCH] fixing isArray dependency fixes #406 --- package.json | 2 +- src/backend/model/database/sql/SQLConnection.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 69f2722a..29609976 100644 --- a/package.json +++ b/package.json @@ -155,6 +155,6 @@ "mysql": "2.18.1" }, "engines": { - "node": ">=14.0 <15.0" + "node": ">=14.14 <15.0" } } diff --git a/src/backend/model/database/sql/SQLConnection.ts b/src/backend/model/database/sql/SQLConnection.ts index 3220a3ea..ea23d9f0 100644 --- a/src/backend/model/database/sql/SQLConnection.ts +++ b/src/backend/model/database/sql/SQLConnection.ts @@ -22,7 +22,6 @@ import {DatabaseType, ServerDataBaseConfig, SQLLogLevel} from '../../../../commo import {AlbumBaseEntity} from './enitites/album/AlbumBaseEntity'; import {SavedSearchEntity} from './enitites/album/SavedSearchEntity'; import {NotificationManager} from '../../NotifocationManager'; -import {isArray} from '../../../../../node_modules/ngx-bootstrap/chronos'; const LOG_TAG = '[SQLConnection]'; @@ -99,7 +98,7 @@ export class SQLConnection { // Adding enforced users to the db const userRepository = connection.getRepository(UserEntity); - if (isArray(Config.Server.Database.enforcedUsers) && + if (Array.isArray(Config.Server.Database.enforcedUsers) && Config.Server.Database.enforcedUsers.length > 0) { for (const uc of Config.Server.Database.enforcedUsers) { const user = await userRepository.findOne({name: uc.name});