We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6262729 commit 929bdfcCopy full SHA for 929bdfc
1 file changed
backend/src/services/integrationService.ts
@@ -1443,9 +1443,11 @@ export default class IntegrationService {
1443
) {
1444
const lists = integrationData.lists || []
1445
1446
+ // Both current callers (mailingListAuthenticate.ts, create-mailing-list-integration.ts)
1447
+ // validate against bodySchema's `.min(1)` before reaching here, so this is an invariant
1448
+ // check, not user-facing validation — fail loudly rather than silently no-op.
1449
if (lists.length === 0) {
- this.options.log.warn('No lists provided - skipping mailing list integration update')
- return null
1450
+ throw new Error400(this.options.language, 'errors.validation.message')
1451
}
1452
1453
const currentOptions = options || this.options
0 commit comments