diff --git a/src/pipeline.ts b/src/pipeline.ts index 995abf21..b3eea251 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -61,8 +61,8 @@ async function policyFilter(event: NostrEvent): Promise { ]; try { - const customPolicy = (await import('../data/policy.ts')).default; - policies.push(new customPolicy()); + const CustomPolicy = (await import('../data/policy.ts')).default; + policies.push(new CustomPolicy()); } catch (_e) { debug('policy not found - https://docs.soapbox.pub/ditto/policies/'); } @@ -71,7 +71,6 @@ async function policyFilter(event: NostrEvent): Promise { const result = await policy.call(event); debug(JSON.stringify(result)); - RelayError.assert(result); }