sleepNotification(): Actually add converted sleep stages to the activities list.
[kraftakt.git] / kraftakt.go
index a2b8b13..4381596 100644 (file)
@@ -511,6 +511,8 @@ func sleepNotification(ctx context.Context, s *fitbit.Subscription) error {
                        log.Warningf(ctx, "unexpected sleep level %v", stg.Level)
                        continue
                }
+
+               activities = append(activities, a)
        }
 
        wg.Wait()