From 04f155580c6576b4037e53e52c46a262deda8fde Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Fri, 4 Oct 2024 05:33:24 +0530 Subject: [PATCH] fix filter generation in db:export --- scripts/db-export.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db-export.ts b/scripts/db-export.ts index 780a5ebc..29d347fc 100644 --- a/scripts/db-export.ts +++ b/scripts/db-export.ts @@ -63,7 +63,7 @@ export function buildFilter(args: ExportFilter) { if (invalid) throw new Error(`ERROR: Invalid pubkey ${invalid} supplied.`); filter.authors = authors; } - if (ids) { + if (ids && ids.length) { const invalid = findInvalid(ids); if (invalid) throw new Error(`ERROR: Invalid event ID ${invalid} supplied.`); filter.ids = ids;