From 2aaa36218591f1757c523d40aab973495de679e3 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 16 Dec 2022 23:26:37 +0100 Subject: [PATCH] Fixing default config TAG issue --- package-lock.json | 14 +++++++------- package.json | 2 +- src/common/config/private/PrivateConfig.ts | 2 +- src/common/config/public/Config.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 410be1aa..35434256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "sharp": "0.31.2", "ts-exif-parser": "0.2.2", "ts-node-iptc": "1.0.11", - "typeconfig": "2.0.25", + "typeconfig": "2.0.26", "typeorm": "0.3.10", "xml2js": "0.4.23" }, @@ -20825,9 +20825,9 @@ } }, "node_modules/typeconfig": { - "version": "2.0.25", - "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.25.tgz", - "integrity": "sha512-f9PgNmhQEI0C3ZcndHECiEvqYMSecQyqynBWhNGvgeRGqzD6Vm+QTCBv0sIUllF0S0UovwhDGRYyd4Q6XKDuzA==", + "version": "2.0.26", + "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.26.tgz", + "integrity": "sha512-qAF+0F/Yln3V8dyjwI5G8VwihkDGG/RcAaKpK0LGmu2Lsn9qLoAIcakSm68t+9TW5owC4KLaz3h4mvBhKyColQ==", "dependencies": { "minimist": "1.2.7" } @@ -38126,9 +38126,9 @@ } }, "typeconfig": { - "version": "2.0.25", - "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.25.tgz", - "integrity": "sha512-f9PgNmhQEI0C3ZcndHECiEvqYMSecQyqynBWhNGvgeRGqzD6Vm+QTCBv0sIUllF0S0UovwhDGRYyd4Q6XKDuzA==", + "version": "2.0.26", + "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.26.tgz", + "integrity": "sha512-qAF+0F/Yln3V8dyjwI5G8VwihkDGG/RcAaKpK0LGmu2Lsn9qLoAIcakSm68t+9TW5owC4KLaz3h4mvBhKyColQ==", "requires": { "minimist": "1.2.7" } diff --git a/package.json b/package.json index 652fa592..ccc5cb0d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "sharp": "0.31.2", "ts-exif-parser": "0.2.2", "ts-node-iptc": "1.0.11", - "typeconfig": "2.0.25", + "typeconfig": "2.0.26", "xml2js": "0.4.23", "typeorm": "0.3.10" }, diff --git a/src/common/config/private/PrivateConfig.ts b/src/common/config/private/PrivateConfig.ts index 7c8bae37..8319ac63 100644 --- a/src/common/config/private/PrivateConfig.ts +++ b/src/common/config/private/PrivateConfig.ts @@ -112,7 +112,7 @@ export class UserConfig { @SubConfigClass() export class ServerDataBaseConfig { - @ConfigProperty({ + @ConfigProperty({ type: DatabaseType, onNewValue: (value, config) => { if (config && value === DatabaseType.memory) { diff --git a/src/common/config/public/Config.ts b/src/common/config/public/Config.ts index 8d9d95cb..1a1cb635 100644 --- a/src/common/config/public/Config.ts +++ b/src/common/config/public/Config.ts @@ -19,7 +19,7 @@ declare namespace ServerInject { export const ConfigInject: ClientClass; } -export const Config: IWebConfigClass & ClientClass = +export const Config: IWebConfigClass & ClientClass = WebConfigClassBuilder.attachInterface(new ClientClass()); if (