diff --git a/CHANGELOG.md b/CHANGELOG.md index c21bd7c..6373f84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Strava Sync Changelog +## 1.0.9 - 2019-08-28 +### Fixed +- Issue where webhook pulled in the userId, not the user element. + ## 1.0.8 - 2019-06-24 ### Fixed - Issue where accessToken, refreshToken and expires column weren't being created on fresh installs. diff --git a/composer.json b/composer.json index 69ac9fd..d494160 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "bymayo/strava-sync", "description": "Connect to Strava with oAuth and sync activities etc to Craft CMS ", "type": "craft-plugin", - "version": "1.0.8", + "version": "1.0.9", "keywords": [ "craft", "cms", diff --git a/src/controllers/WebhookController.php b/src/controllers/WebhookController.php index 9829bb5..0319017 100644 --- a/src/controllers/WebhookController.php +++ b/src/controllers/WebhookController.php @@ -56,7 +56,7 @@ public function actionSync() if ($requestBody['aspect_type'] == 'create' && $requestBody['object_type'] == 'activity') { // Sync to Events Module - EventsModule::getInstance()->events->sync($requestBody, $user->userId); + EventsModule::getInstance()->events->sync($user, $requestBody); return true; }