[NFC] oncall cleanup

This commit is contained in:
Jon Goldberg 2020-07-31 17:20:30 -04:00
parent efba28f3f4
commit 1273c9e879
No known key found for this signature in database
GPG Key ID: C2D2247364F9DB13

View File

@ -4,6 +4,7 @@ declare(strict_types = 1);
require_once 'vendor/autoload.php';
use Yasumi\Holiday;
/* On Call Ticket Notification Script */
$oncall = new oncall();
$oncall->dateAndTimeCheck();
@ -17,8 +18,6 @@ if ($table) {
$oncall->sendToMattermost($table);
}
//email($item, $contact);
/**
* The class that does all the magic.
*/
@ -82,6 +81,7 @@ class oncall {
$this->baseUrl = getenv('REDMINE_URL');
$this->apiKey = getenv('KEY');
// FIXME: Not using $this->apiKey.
$this->queries = [
'New Support Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=17&key=7ebe204bef5804f4effb9b4160a295487dde15f1',
'New Maintenance Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=18&key=7ebe204bef5804f4effb9b4160a295487dde15f1',