diff --git a/src/policies/MuteListPolicy.ts b/src/policies/MuteListPolicy.ts index c069565..f9f8de2 100644 --- a/src/policies/MuteListPolicy.ts +++ b/src/policies/MuteListPolicy.ts @@ -6,8 +6,8 @@ export class MuteListPolicy implements NPolicy { constructor(private pubkey: string, private store: NStore) {} async call(event: NostrEvent): Promise { - const allowEvent = ['OK', event.id, true, ''] as NostrRelayOK; - const blockEvent = ['OK', event.id, false, 'You are banned in this server.'] as NostrRelayOK; + const allowEvent: NostrRelayOK = ['OK', event.id, true, '']; + const blockEvent: NostrRelayOK = ['OK', event.id, false, 'You are banned in this server.']; const [muteList] = await this.store.query([{ authors: [this.pubkey], kinds: [10000], limit: 1 }]); if (!muteList) return allowEvent;