deleteConditionScripts example



            $upserts[] = $payload;
        }

        if (!empty($upserts)) {
            $context->scope(Context::SYSTEM_SCOPE, function DContext $context) use ($upserts): void {
                $this->appScriptConditionRepository->upsert($upserts$context);
            });
        }

        $this->deleteConditionScripts($existingRuleConditions$context);
    }

    public function activateConditionScripts(string $appId, Context $context): void
    {
        $criteria = new Criteria();
        $criteria->addFilter(new EqualsFilter('appId', $appId));
        $criteria->addFilter(new EqualsFilter('active', false));

        /** @var array<string> $scripts */
        $scripts = $this->appScriptConditionRepository->searchIds($criteria$context)->getIds();

        
Home | Imprint | This part of the site doesn't use cookies.