From e07830bc46e33e0997bc313428cdc83ba36c229a Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Thu, 20 Jun 2024 16:25:04 -0400 Subject: [PATCH] filters property is no longer optional in the message descriptor --- src/interfaces/events-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/events-query.ts b/src/interfaces/events-query.ts index b29a76d35..1df3f7cc5 100644 --- a/src/interfaces/events-query.ts +++ b/src/interfaces/events-query.ts @@ -23,7 +23,7 @@ export class EventsQuery extends AbstractMessage{ Message.validateJsonSchema(message); await Message.validateSignatureStructure(message.authorization.signature, message.descriptor); - for (const filter of message.descriptor.filters || []) { + for (const filter of message.descriptor.filters) { if ('protocol' in filter && filter.protocol !== undefined) { validateProtocolUrlNormalized(filter.protocol); }