Fix schedules running twice, closes #1288
This commit is contained in:
parent
413a22a3d5
commit
5bd3f59455
6 changed files with 18 additions and 72 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Pterodactyl\Http\Controllers\Server\Tasks;
|
||||
|
||||
use Cake\Chronos\Chronos;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
|
@ -71,7 +70,7 @@ class ActionController extends Controller
|
|||
$server = $request->attributes->get('server');
|
||||
$this->authorize('toggle-schedule', $server);
|
||||
|
||||
$this->processScheduleService->setRunTimeOverride(Chronos::now())->handle(
|
||||
$this->processScheduleService->handle(
|
||||
$request->attributes->get('schedule')
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue