mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-09-03 05:10:00 +03:00
@@ -184,7 +184,7 @@ export default class ScrobbleClients {
|
||||
const envSchema = await getClientEnvSchema(clientType);
|
||||
const configTypeUpper = envSchema.prefix.toUpperCase();
|
||||
|
||||
const clientKeys = envKeys.filter(x => x.includes(configTypeUpper));
|
||||
const clientKeys = envKeys.filter(x => x.startsWith(configTypeUpper));
|
||||
if (clientKeys.length > 0) {
|
||||
clientUnparsedConfigs.push({
|
||||
config: pick(process.env, ...clientKeys),
|
||||
|
||||
@@ -203,7 +203,7 @@ export default class ScrobbleSources {
|
||||
const envSchema = await getSourceEnvSchema(configType);
|
||||
const configTypeUpper = envSchema.prefix.toUpperCase();
|
||||
|
||||
const configKeys = envKeys.filter(x => x.includes(configTypeUpper));
|
||||
const configKeys = envKeys.filter(x => x.startsWith(configTypeUpper));
|
||||
if (configKeys.length > 0) {
|
||||
sourceUnparsedConfigs.push({
|
||||
config: pick(process.env, ...configKeys),
|
||||
|
||||
Reference in New Issue
Block a user