We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f76697 + 2b249f7 commit ab5c5f1Copy full SHA for ab5c5f1
app/commands/clearPushSubscriptions.php
@@ -1,15 +1,14 @@
1
<?php
2
3
namespace App\Commands;
4
+
5
use System\DB;
6
7
class clearPushSubscriptions
8
{
-
9
- public function __construct ()
+ public function __construct()
10
11
- $results = DB::column("SELECT COUNT(*) from `push_subscriptions` WHERE `added` < (NOW() - INTERVAL 1 DAY)");
+ $results = DB::column('SELECT COUNT(*) from `push_subscriptions` WHERE `added` < (NOW() - INTERVAL 1 DAY)');
12
echo 'Deleted '.$results.' records from database';
13
}
14
15
0 commit comments