From 1c7a4d3a11bdf3e79bfa7dc3ecf1ee3d76875c5b Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 17 Feb 2026 14:07:09 +0100 Subject: [PATCH] fix: remove db-journal from git --- .gitignore | 3 ++- notes.db-journal | Bin 8720 -> 0 bytes src/data/db.ts | 16 +++++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 notes.db-journal diff --git a/.gitignore b/.gitignore index 4fca1b7..add2716 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json # Finder (MacOS) folder config .DS_Store -*.db \ No newline at end of file +*.db +*.db-journal diff --git a/notes.db-journal b/notes.db-journal deleted file mode 100644 index d2a29426c80236f2fab52348a9a0a25db81f4160..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8720 zcmeI$u?fR45QX8B?KCk)ZZ$*-Da684Xow6DkjVlWAZ-@R2pPa9Oz;dA|KmU>ROu_9 z$e#BnpY?VUY4jNP2ez68x{oOM0tg_000IagfB*srAbHErx&ZQ_3G>f1*PWKmY**5I_I{1Q0*~0R#|0pdx|3b { export const upsertNote = (note: Note) => { const now = new Date().toISOString(); + const params = [ + note.title, + note.publishedAt ? new Date(note.publishedAt).toISOString() : now, + note.createdAt ? new Date(note.createdAt).toISOString() : now, + note.did, + note.rkey, + ]; + console.log(`[db] upsertNote params: ${JSON.stringify(params)}`); db.query( ` @@ -96,12 +104,6 @@ export const upsertNote = (note: Note) => { title = excluded.title, publishedAt = excluded.publishedAt `, - [ - note.title, - note.publishedAt ? new Date(note.publishedAt).toISOString() : now, - note.createdAt ? new Date(note.createdAt).toISOString() : now, - note.did, - note.rkey, - ], + params, ); };