fixed note

This commit is contained in:
Ren Amamiya
2023-03-22 09:57:12 +07:00
parent ec749541cd
commit 27fe32d748
4 changed files with 13 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ export const NoteConnector = memo(function NoteConnector() {
// insert to local database
await db.execute(
'INSERT OR IGNORE INTO cache_notes (id, pubkey, created_at, kind, content, tags) VALUES (?, ?, ?, ?, ?, ?);',
[event.id, event.pubkey, event.created_at, event.kind, event.content, String(event.tags)]
[event.id, event.pubkey, event.created_at, event.kind, event.content, JSON.stringify(event.tags)]
);
},
[db]