File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ CourseSummary.prototype._headers = function() {
3333CourseSummary . prototype . _requestOptions = function ( ) {
3434 var request_options = CourseSummary . super_ . prototype . _requestOptions . apply ( this , arguments ) ;
3535
36- request_options . path = this . endpoint + 'channels/' + this . channelId + '/course-summaries' + ( this . query ? '?' + this . query : '' ) ;
36+ request_options . path = this . endpoint + 'channels/' + this . channelId + '/course-summaries' + ( Object . keys ( this . query ) . length ? '?' + this . query : '' ) ;
3737 request_options . method = 'GET' ;
3838
3939 return request_options
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ TeeTimeSummary.prototype._requestOptions = function() {
3737 request_options . path = this . endpoint +
3838 'channels/' + this . channelId +
3939 '/courses/' + this . courseId +
40- '/tee-time-summaries' + ( this . query ? '?' + this . query : '' ) ;
40+ '/tee-time-summaries' + ( Object . keys ( this . query ) . length ? '?' + this . query : '' ) ;
4141 request_options . method = 'GET' ;
4242
4343 return request_options
You can’t perform that action at this time.
0 commit comments