Skip to content

Commit

Permalink
Error where no userId was defined when checking to see if user connec…
Browse files Browse the repository at this point in the history
…ted to Strava
  • Loading branch information
bymayo committed May 31, 2019
1 parent 4a0bbf0 commit 0e75eab
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.7 - 2019-05-31
### Fixed
- Error where no userId was defined when checking to see if user connected to Strava

## 1.0.6 - 2019-05-31
### Added
- Table attribute to the users table view to see if user is connected/disconnected from Strava
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.6",
"version": "1.0.7",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/variables/StravaSyncVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function request($method, $params = null, $userId = null)
return $connect = StravaSync::getInstance()->oauthService->request($method, $params, $userId);
}

public function connected($userId)
public function connected($userId = null)
{
return StravaSync::getInstance()->userService->checkUserLinkExists($userId);
}
Expand Down

0 comments on commit 0e75eab

Please sign in to comment.