Skip to content

Commit 7194d3a

Browse files
committed
Fix course_summary.js and tee_time_summary.js
1 parent db77691 commit 7194d3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/course_summary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CourseSummary.prototype._headers = function() {
3333
CourseSummary.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

lib/tee_time_summary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)