Skip to content

Commit 33ef524

Browse files
committed
Fixed bug with PurgeCommand
1 parent a226c71 commit 33ef524

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/commands/ApmDashboardCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ public function execute()
7474
$io->green("Running: $command", true);
7575

7676
// Execute the PHP server command
77-
// $shell = new Shell($command);
78-
// $shell->setOptions(getcwd());
79-
// $shell->execute();
80-
// echo $shell->getOutput();
81-
// echo $shell->getErrorOutput();
8277
passthru($command);
8378
}
8479
}

src/commands/PurgeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function execute()
7474

7575
try {
7676
// Delete old records from apm_requests
77-
$stmt = $db->prepare("DELETE FROM apm_requests WHERE timestamp < :cutoff_date");
77+
$stmt = $db->prepare("DELETE FROM apm_requests WHERE request_dt < :cutoff_date");
7878
$stmt->bindParam(':cutoff_date', $cutoffDate);
7979
$stmt->execute();
8080

0 commit comments

Comments
 (0)