sleepNotification(): Actually add converted sleep stages to the activities list.
authorFlorian Forster <ff@octo.it>
Fri, 2 Feb 2018 07:03:11 +0000 (08:03 +0100)
committerFlorian Forster <ff@octo.it>
Fri, 2 Feb 2018 07:03:11 +0000 (08:03 +0100)
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
                }
                        log.Warningf(ctx, "unexpected sleep level %v", stg.Level)
                        continue
                }
+
+               activities = append(activities, a)
        }
 
        wg.Wait()
        }
 
        wg.Wait()