mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-06-20 22:01:05 +02: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);
|
setExporting(true);
|
||||||
const rows = await localDatabase.getAll("events");
|
const rows = await localDatabase.getAll("events");
|
||||||
const lines = rows.map((row) => stringify(row.event));
|
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",
|
type: "application/jsonl",
|
||||||
});
|
});
|
||||||
const url = URL.createObjectURL(file);
|
const url = URL.createObjectURL(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user