From 2da8042b0f94e381a0b29a9b97d5476a569401bd Mon Sep 17 00:00:00 2001 From: DaneEveritt Date: Sun, 24 Jul 2022 20:43:14 -0400 Subject: [PATCH] Fix `clock()` usage causing errors in prod environments --- CHANGELOG.md | 4 ++++ .../Controllers/Api/Remote/ActivityProcessingController.php | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e531bfe9..c75e25ffd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa This project follows [Semantic Versioning](http://semver.org) guidelines. +## v1.10.1 +### Fixed +* Fixes a surprise `clock()` function that was used for debugging and should not have made it into the release. This was causing activity events to not properly sync between the Panel and Wings. + ## v1.10.0 ### Fixed * Fixes improper cache key naming on the frontend causing server activity logs to be duplicated across server page views. diff --git a/app/Http/Controllers/Api/Remote/ActivityProcessingController.php b/app/Http/Controllers/Api/Remote/ActivityProcessingController.php index 0f0447d2a..04a844888 100644 --- a/app/Http/Controllers/Api/Remote/ActivityProcessingController.php +++ b/app/Http/Controllers/Api/Remote/ActivityProcessingController.php @@ -26,8 +26,6 @@ class ActivityProcessingController extends Controller $servers = $node->servers()->whereIn('uuid', $request->servers())->get()->keyBy('uuid'); $users = User::query()->whereIn('uuid', $request->users())->get()->keyBy('uuid'); - clock()->log($request->input('data')); - $logs = []; foreach ($request->input('data') as $datum) { /** @var \Pterodactyl\Models\Server|null $server */