Skip to content

Commit

Permalink
fixes strava max_heartrate data type
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Beutel committed Feb 16, 2025
1 parent 307736d commit 77ffa48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db/integrations/strava/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type StravaRoute struct {
Description string `json:"description"`
Distance float32 `json:"distance"`
ElevationGain float32 `json:"elevation_gain"`
ID int `json:"id"`
ID int64 `json:"id"`
IDStr string `json:"id_str"`
Map Map `json:"map"`
Name string `json:"name"`
Expand All @@ -52,7 +52,7 @@ type StravaRoute struct {
}

type Athlete struct {
ID int `json:"id"`
ID int64 `json:"id"`
ResourceState int `json:"resource_state"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Expand All @@ -75,7 +75,7 @@ type Map struct {
}

type AthletePrEffort struct {
PrActivityID int `json:"pr_activity_id"`
PrActivityID int64 `json:"pr_activity_id"`
PrElapsedTime int `json:"pr_elapsed_time"`
PrDate time.Time `json:"pr_date"`
EffortCount int `json:"effort_count"`
Expand All @@ -92,7 +92,7 @@ type AthleteSegmentStats struct {
}

type Segments struct {
ID int `json:"id"`
ID int64 `json:"id"`
Name string `json:"name"`
ActivityType string `json:"activity_type"`
Distance float32 `json:"distance"`
Expand Down Expand Up @@ -164,7 +164,7 @@ type StravaActivity struct {
DeviceWatts bool `json:"device_watts"`
HasHeartrate bool `json:"has_heartrate"`
AverageHeartrate float64 `json:"average_heartrate"`
MaxHeartrate int `json:"max_heartrate"`
MaxHeartrate float64 `json:"max_heartrate"`
MaxWatts int `json:"max_watts"`
PrCount int `json:"pr_count"`
TotalPhotoCount int `json:"total_photo_count"`
Expand Down Expand Up @@ -242,7 +242,7 @@ type SegmentActivity struct {
}

type Segment struct {
ID int `json:"id"`
ID int64 `json:"id"`
ResourceState int `json:"resource_state"`
Name string `json:"name"`
ActivityType string `json:"activity_type"`
Expand Down

0 comments on commit 77ffa48

Please sign in to comment.