Skip to content

Commit

Permalink
Merge pull request #1782 from jpwhite4/fixtypo
Browse files Browse the repository at this point in the history
Fix typo in data check
  • Loading branch information
jpwhite4 authored Oct 12, 2023
2 parents e361d68 + 20a473f commit 2c37e1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/DataWarehouse/Query/Cloud/JobDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
$endDate = date_parse_from_format('Y-m-d', $parameters['end_date']);
$endDateTs = mktime(23, 59, 59, $endDate['month'], $endDate['day'], $endDate['year']);

if ($startDateTs === false) {
if ($endDateTs === false) {
throw new Exception('invalid "end_date" query parameter');
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DataWarehouse/Query/Gateways/JobDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
$endDate['day'],
$endDate['year']
);
if ($startDateTs === false) {
if ($endDateTs === false) {
throw new Exception('invalid "end_date" query parameter');
}

Expand Down
2 changes: 1 addition & 1 deletion classes/DataWarehouse/Query/Jobs/JobDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
$endDate['day'],
$endDate['year']
);
if ($startDateTs === false) {
if ($endDateTs === false) {
throw new Exception('invalid "end_date" query parameter');
}

Expand Down

0 comments on commit 2c37e1d

Please sign in to comment.