From f4ad5d6bd209625a6749e3f812f8f501f4406ee5 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 5 Feb 2021 14:00:31 +0000 Subject: [PATCH] fix muppet change in posts handler --- posts/handler/posts.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/posts/handler/posts.go b/posts/handler/posts.go index 8e970e7..93f0627 100644 --- a/posts/handler/posts.go +++ b/posts/handler/posts.go @@ -229,9 +229,7 @@ func (p *Posts) Query(ctx context.Context, req *proto.QueryRequest, rsp *proto.Q logger.Infof("Listing posts, offset: %v, limit: %v", req.Offset, limit) } - var posts []*proto.Post - - if err := p.db.Read(q, &posts); err != nil { + if err := p.db.Read(q, &rsp.Posts); err != nil { return err }