Skip to content

Commit

Permalink
Update saveNote to log note ID and parsed note content for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Dec 28, 2024
1 parent d3820ed commit b708705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/services/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ const wraperApiRequest = async (url: string, method: 'PUT' | 'GET', data: any) =

const saveNote = async (note: DiaryEntry) => {
const db = await openDatabase()
console.log("saving note", note);
console.log("saving note", note.noteId);
console.log(JSON.parse(note.note))
await db.put('notes', note);

// if user online, immediately save to the server
Expand Down

0 comments on commit b708705

Please sign in to comment.