Skip to content

Commit

Permalink
fix: do not update the date_modified when you move a note
Browse files Browse the repository at this point in the history
  • Loading branch information
afspeirs committed Jan 28, 2024
1 parent 059ee1c commit b59f346
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export async function importNotes(collection: NoteCollection, files: Partial<Not

export async function moveNote(note: NoteDocument, newFolder: string) {
await note?.patch({
date_modified: new Date().toISOString(),
folder: newFolder,
})
.then((note2) => toast(`"${getTitle(note.text)}" ${note2?.folder ? `moved to "${note2.folder}"` : 'removed from folder'}`, {
Expand Down

0 comments on commit b59f346

Please sign in to comment.