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); }