mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-db-export' into 'main'
fix filter generation in db:export See merge request soapbox-pub/ditto!533
This commit is contained in:
commit
d0666ff818
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export function buildFilter(args: ExportFilter) {
|
||||||
if (invalid) throw new Error(`ERROR: Invalid pubkey ${invalid} supplied.`);
|
if (invalid) throw new Error(`ERROR: Invalid pubkey ${invalid} supplied.`);
|
||||||
filter.authors = authors;
|
filter.authors = authors;
|
||||||
}
|
}
|
||||||
if (ids) {
|
if (ids && ids.length) {
|
||||||
const invalid = findInvalid(ids);
|
const invalid = findInvalid(ids);
|
||||||
if (invalid) throw new Error(`ERROR: Invalid event ID ${invalid} supplied.`);
|
if (invalid) throw new Error(`ERROR: Invalid event ID ${invalid} supplied.`);
|
||||||
filter.ids = ids;
|
filter.ids = ids;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue