diff --git a/pkg/api/dto/times.go b/pkg/api/dto/times.go index 652a8c2..f94a3c4 100644 --- a/pkg/api/dto/times.go +++ b/pkg/api/dto/times.go @@ -2,6 +2,7 @@ package dto import ( "git.itzana.me/strafesnet/go-grpc/times" + "strconv" "time" ) @@ -29,7 +30,7 @@ type TimeFilter struct { } // @TimeFilter type TimeData struct { - ID int64 `json:"id"` + ID string `json:"id"` Time int64 `json:"time"` User User `json:"user"` Map Map `json:"map"` @@ -46,7 +47,7 @@ func (t *TimeData) FromGRPC(resp *times.TimeResponse) *TimeData { return nil } - t.ID = resp.ID + t.ID = strconv.FormatInt(resp.ID, 10) t.Time = resp.Time t.Date = time.Unix(resp.Date, 0) t.StyleID = resp.StyleID