From c8e4ccf772129b54190c057e419bd2c05434f588 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Mon, 16 Sep 2024 23:40:36 +0200 Subject: [PATCH] getEvent should resolve(null) when 0 matches are found --- src/nostr/client.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nostr/client.ts b/src/nostr/client.ts index 8707cb6..88a94d7 100644 --- a/src/nostr/client.ts +++ b/src/nostr/client.ts @@ -45,8 +45,11 @@ function getEvent(filter: Filter, signal?: AbortSignal): Promise { + // No matches found + resolve(null); + }, { unsubscribeOnEose: true }, ); }); -- GitLab