Let MySQL do the time logic when looking for tasks

This commit is contained in:
Dane Everitt 2020-10-25 15:06:54 -07:00
parent 23872b844a
commit 8c6327fd32
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 24 additions and 168 deletions

View file

@ -24,12 +24,4 @@ interface ScheduleRepositoryInterface extends RepositoryInterface
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function getScheduleWithTasks(int $schedule): Schedule;
/**
* Return all of the schedules that should be processed.
*
* @param string $timestamp
* @return \Illuminate\Support\Collection
*/
public function getSchedulesToProcess(string $timestamp): Collection;
}