Uppercase CustomPolicy

This commit is contained in:
Alex Gleason 2024-05-14 14:39:48 -05:00
parent ecfea827e1
commit 46b5bbf841
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 3 deletions

View File

@ -61,8 +61,8 @@ async function policyFilter(event: NostrEvent): Promise<void> {
]; ];
try { try {
const customPolicy = (await import('../data/policy.ts')).default; const CustomPolicy = (await import('../data/policy.ts')).default;
policies.push(new customPolicy()); policies.push(new CustomPolicy());
} catch (_e) { } catch (_e) {
debug('policy not found - https://docs.soapbox.pub/ditto/policies/'); debug('policy not found - https://docs.soapbox.pub/ditto/policies/');
} }
@ -71,7 +71,6 @@ async function policyFilter(event: NostrEvent): Promise<void> {
const result = await policy.call(event); const result = await policy.call(event);
debug(JSON.stringify(result)); debug(JSON.stringify(result));
RelayError.assert(result); RelayError.assert(result);
} }