1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Use correct constant when deleting usage stats

This commit is contained in:
kodumbeats 2021-09-15 11:28:40 -04:00
parent a1d1bc935b
commit 8cde715d04
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ $cli
function notifyDeleteUsageStats(int $interval30m, int $interval1d)
{
Resque::enqueue(Event::DELETE_QUEUE_NAME, Event::DELETE_CLASS_NAME, [
'type' => DELETE_TYPE_USAGE_STATS,
'type' => DELETE_TYPE_USAGE,
'timestamp1d' => time() - $interval1d,
'timestamp30m' => time() - $interval30m,
]);

View file

@ -79,7 +79,7 @@ class DeletesV1 extends Worker
$this->deleteCertificates($document);
break;
case DELETE_TYPE_USAGE_STATS:
case DELETE_TYPE_USAGE:
$this->deleteUsageStats($this->args['timestamp1d'], $this->args['timestamp30m']);
break;
default: