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