fix muppet change in posts handler

This commit is contained in:
Asim Aslam
2021-02-05 14:00:31 +00:00
parent 421a6be0a0
commit f4ad5d6bd2

View File

@@ -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
}