File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 484
484
const serviceKey = service.toLowerCase() as keyof typeof subProcessorsData;
485
485
if (subProcessorsData[serviceKey]) {
486
486
subProcessorsData[serviceKey].forEach((processor: any) => {
487
- // Check if processor should be included based on conditions
488
- if (processor.condition) {
489
- const condition = processor.condition.replace('emailServices', `'${emailServices}'`);
490
- if (!eval(condition)) {
487
+ // Check if processor should be included based on conditions
488
+ if (processor.condition) {
489
+ if (processor.condition === "emailServices === 'Kinde default'") {
490
+ if (emailServices !== 'Kinde default') {
491
+ return; // Skip this processor
492
+ }
493
+ } else if (processor.condition === "smsServices === 'Kinde default'") {
494
+ if (smsServices !== 'Kinde default') {
491
495
return; // Skip this processor
492
496
}
493
497
}
498
+ }
494
499
495
500
relevantSubProcessors.push({
496
501
service: processor.service,
You can’t perform that action at this time.
0 commit comments