From 46b5bbf8419f8e219504dcd92f82ef1ef45980b5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 14 May 2024 14:39:48 -0500 Subject: [PATCH] Uppercase CustomPolicy --- src/pipeline.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index 995abf2..b3eea25 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); }