diff --git a/src/channels/plugins/setup-promotion-helpers.test.ts b/src/channels/plugins/setup-promotion-helpers.test.ts index c9fb560fef8..626ea6124ec 100644 --- a/src/channels/plugins/setup-promotion-helpers.test.ts +++ b/src/channels/plugins/setup-promotion-helpers.test.ts @@ -30,6 +30,7 @@ describe("setup promotion helpers", () => { const keys = resolveSingleAccountKeysToMove({ channelKey: "demo", channel: { + defaultAccount: "ops", dmPolicy: "allowlist", allowFrom: ["+15551234567"], groupPolicy: "allowlist", diff --git a/src/channels/plugins/setup-promotion-helpers.ts b/src/channels/plugins/setup-promotion-helpers.ts index 640c16befcc..21912bf2ccd 100644 --- a/src/channels/plugins/setup-promotion-helpers.ts +++ b/src/channels/plugins/setup-promotion-helpers.ts @@ -102,7 +102,10 @@ export function resolveSingleAccountKeysToMove(params: { Object.keys((params.channel.accounts as Record) ?? {}).filter(Boolean).length > 0; const entries = Object.entries(params.channel) - .filter(([key, value]) => key !== "accounts" && key !== "enabled" && value !== undefined) + .filter( + ([key, value]) => + key !== "accounts" && key !== "defaultAccount" && key !== "enabled" && value !== undefined, + ) .map(([key]) => key); if (entries.length === 0) { return [];