bump micro

This commit is contained in:
Asim Aslam
2021-01-27 11:03:21 +00:00
parent 47fe6b39ec
commit 285fcef4e8
8 changed files with 25 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ type handler struct{}
// List all the notes
func (h *handler) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error {
// query the store
recs, err := store.Read("", store.Prefix(storePrefix))
recs, err := store.Read(storePrefix, store.ReadPrefix())
if err != nil {
logger.Errorf("Error reading notes from the store: %v", err)
return errors.InternalServerError("notes.List.Unknown", "Error reading from the store")