Skip to content

Commit

Permalink
fix for missing tags conversion in grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Dec 1, 2018
1 parent f2d6395 commit 8798dd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/pbconverter.go
Expand Up @@ -564,6 +564,9 @@ func pbSetQuerySerialize(in *MsgSetQuery) *pbx.SetQuery {
Mode: in.Sub.Mode,
}
}

out.Tags = in.Tags

return out
}

Expand All @@ -574,12 +577,15 @@ func pbSetQueryDeserialize(in *pbx.SetQuery) *MsgSetQuery {
if desc := in.GetDesc(); desc != nil {
msg.Desc = pbSetDescDeserialize(desc)
}

if sub := in.GetSub(); sub != nil {
msg.Sub = &MsgSetSub{
User: sub.GetUserId(),
Mode: sub.GetMode(),
}
}

msg.Tags = in.GetTags()
}

return &msg
Expand Down

0 comments on commit 8798dd1

Please sign in to comment.