Test deleting the notes

This commit is contained in:
Micheal Wilkinson
2026-03-17 21:47:44 +00:00
parent c97afbd95d
commit 0d2cb5efd9
2 changed files with 74 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ func (r *NoteRepository) CreateNote(content string) (models.Note, error) {
return models.Note{}, fmt.Errorf("content cannot be empty")
}
note := models.Note{
Content: content,
Content: content,
LastUpdate: time.Now(),
}
return r.store.SaveNote(note)
@@ -46,3 +46,7 @@ func (r *NoteRepository) UpdateNote(id int, content string) (models.Note, error)
note.LastUpdate = time.Now()
return r.store.SaveNote(note)
}
func (r *NoteRepository) DeleteNote(id int) error {
return fmt.Errorf("not implemented")
}