Skip to content

Commit

Permalink
Merge pull request oddnetworks#6 from oddnetworks/maths
Browse files Browse the repository at this point in the history
sorry blain
  • Loading branch information
blainsmith authored Nov 30, 2016
2 parents e46b726 + 59e7adc commit a6a55b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,11 @@ class Client {
return 'application/json';
}

static resolveIfScheduled(video, date) {
static resolveIfScheduled(video) {
if (_.has(video, 'schedule') &&
!_.isNull(video.schedule) &&
!_.isUndefined(video.schedule)) {
const now = date || _.now();
const now = _.now();
const startsAt = Date.parse(_.get(video, 'schedule.starts_at'));
const endsAt = Date.parse(_.get(video, 'schedule.ends_at'));

Expand Down

0 comments on commit a6a55b0

Please sign in to comment.