From 475a3f1276d26a591d5beb10f8ca46a5abfe7f02 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 11 Aug 2026 15:14:08 +0000 Subject: [PATCH] fix: narrow env config key collection to include prefix underscore --- src/backend/scrobblers/ScrobbleClients.ts | 2 +- src/backend/sources/ScrobbleSources.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/scrobblers/ScrobbleClients.ts b/src/backend/scrobblers/ScrobbleClients.ts index 4e278e0e..2804ecab 100644 --- a/src/backend/scrobblers/ScrobbleClients.ts +++ b/src/backend/scrobblers/ScrobbleClients.ts @@ -188,7 +188,7 @@ export default class ScrobbleClients { const envSchema = await getClientEnvSchema(clientType); const configTypeUpper = envSchema.prefix.toUpperCase(); - const clientKeys = envKeys.filter(x => x.startsWith(configTypeUpper)); + const clientKeys = envKeys.filter(x => x.startsWith(`${configTypeUpper}_`)); if (clientKeys.length > 0) { clientUnparsedConfigs.push({ config: pick(process.env, ...clientKeys), diff --git a/src/backend/sources/ScrobbleSources.ts b/src/backend/sources/ScrobbleSources.ts index a10e29ac..4ca8800f 100644 --- a/src/backend/sources/ScrobbleSources.ts +++ b/src/backend/sources/ScrobbleSources.ts @@ -207,7 +207,7 @@ export default class ScrobbleSources { const envSchema = await getSourceEnvSchema(configType); const configTypeUpper = envSchema.prefix.toUpperCase(); - const configKeys = envKeys.filter(x => x.startsWith(configTypeUpper)); + const configKeys = envKeys.filter(x => x.startsWith(`${configTypeUpper}_`)); if (configKeys.length > 0) { sourceUnparsedConfigs.push({ config: pick(process.env, ...configKeys), -- 2.51.2