Skip to content

Commit

Permalink
Issue where webhook pulled in the userId, not the user element.
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo committed Aug 28, 2019
1 parent fe835cd commit c5958ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Expand Down

0 comments on commit c5958ea

Please sign in to comment.