Implemented the missing get function
This commit is contained in:
@@ -25,5 +25,5 @@ func (r *NoteRepository) CreateNote(content string) (models.Note, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *NoteRepository) GetNote(id int) (models.Note, error) {
|
func (r *NoteRepository) GetNote(id int) (models.Note, error) {
|
||||||
return models.Note{}, fmt.Errorf("not implemented")
|
return r.store.GetNoteByID(id)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user