#446 fix context (#484)

This commit is contained in:
Romanenko Alexey
2020-03-13 23:06:44 +07:00
committed by GitHub
parent 44bf37941b
commit 983aeeb33d
3 changed files with 5 additions and 3 deletions

View File

@@ -50,6 +50,8 @@ func (s *Server) Check(ctx context.Context, in *proto.HealthCheckRequest) (*prot
func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*proto.NotificationReply, error) {
var badge = int(in.Badge)
notification := gorush.PushNotification{
Ctx: ctx,
Platform: int(in.Platform),
Tokens: in.Tokens,
Message: in.Message,