Skip to content

Commit

Permalink
Fix int64 to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jayme-github committed Jun 29, 2020
1 parent 99566c8 commit 8c09354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"bytes"
"fmt"
"strconv"
"strings"
tmpltext "text/template"
"time"
Expand Down Expand Up @@ -65,7 +66,7 @@ func NewDataMessage(topic, title, body string) *messaging.Message {
data := map[string]string{
"title": title,
"body": body,
"pageTime": string(unixMillisecondsUTC),
"pageTime": strconv.FormatInt(unixMillisecondsUTC, 10),
}
return &messaging.Message{
Data: data,
Expand Down

0 comments on commit 8c09354

Please sign in to comment.