Skip to content

Commit

Permalink
filters property is no longer optional in the message descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Jun 20, 2024
1 parent 0b1adbf commit e07830b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/events-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class EventsQuery extends AbstractMessage<EventsQueryMessage>{
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);
}
Expand Down

0 comments on commit e07830b

Please sign in to comment.