✨ add torrent client

This commit is contained in:
Manuel Ruwe committed 2022-12-31 16:14:42 +01:00
1 parent 78bc883667
commit 4e097caf98
14 files changed
+264 -29

No files matched your search

+3 -1
View File
@@ -1,3 +1,4 @@
import Consola from 'consola';
import { BackendConfigType } from '../../types/config';
import { configExists } from './configExists';
import { getFallbackConfig } from './getFallbackConfig';
@@ -11,8 +12,9 @@ export const getConfig = (name: string): BackendConfigType => {
// to the new format.
const config = readConfig(name);
if (config.schemaVersion === undefined) {
console.log('Migrating config file...', config);
Consola.log('Migrating config file...', config);
return migrateConfig(config, name);
}
return config;
};
+2 -2
View File
@@ -14,8 +14,8 @@ export const getFrontendConfig = (name: string): ConfigType => {
properties:
app.integration?.properties.map((property) => ({
...property,
value: property.type === 'private' ? undefined : property.value,
isDefined: property.value != null,
value: property.type === 'private' ? null : property.value,
isDefined: property.value !== null,
})) ?? [],
},
})),