fix filter generation in db:export

This commit is contained in:
Siddharth Singh 2024-10-04 05:33:24 +05:30
parent e064531ca2
commit 04f155580c
No known key found for this signature in database

View file

@ -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;