diff --git a/routes/tests.php b/routes/tests.php index 7b5208d..fbb1060 100644 --- a/routes/tests.php +++ b/routes/tests.php @@ -47,7 +47,7 @@ return "Missing 'id'."; } - $last_record = RssPost::orderBy('id','ASC')->first(); + $last_record = RssPost::orderBy('id','DESC')->first(); for ($i=$id; $i < $last_record->id; $i++) { CrawlRssPostJob::dispatch($i)->onQueue('default')->onConnection('default');