Package fitbit: Append the collection type to the subscriber ID.
[kraftakt.git] / kraftakt.go
index f6b3d9c..092cad3 100644 (file)
@@ -314,7 +314,7 @@ func handleNotifications(ctx context.Context, payload []byte) error {
 }
 
 func handleNotification(ctx context.Context, s *fitbit.Subscription) error {
-       u, err := app.UserByID(ctx, s.SubscriptionID)
+       u, err := fitbit.UserFromSubscriberID(ctx, s.SubscriptionID)
        if err != nil {
                return err
        }