Implement delete notes
This commit is contained in:
@@ -48,5 +48,5 @@ func (r *NoteRepository) UpdateNote(id int, content string) (models.Note, error)
|
||||
}
|
||||
|
||||
func (r *NoteRepository) DeleteNote(id int) error {
|
||||
return fmt.Errorf("not implemented")
|
||||
return r.store.DeleteNoteByID(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user