mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-29 11:12:12 +01:00
Fix jsonl database export format
This commit is contained in:
parent
2d0a906264
commit
cfa0461472
5
.changeset/lovely-dryers-protect.md
Normal file
5
.changeset/lovely-dryers-protect.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"nostrudel": patch
|
||||
---
|
||||
|
||||
Fix jsonl database export format
|
@ -99,7 +99,7 @@ export default function DatabaseSettings() {
|
||||
setExporting(true);
|
||||
const rows = await localDatabase.getAll("events");
|
||||
const lines = rows.map((row) => stringify(row.event));
|
||||
const file = new File(lines, "noStrudel-export.jsonl", {
|
||||
const file = new File([lines.join("\n")], "noStrudel-export.jsonl", {
|
||||
type: "application/jsonl",
|
||||
});
|
||||
const url = URL.createObjectURL(file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user