|
@@ -54,7 +54,7 @@ class YesterdayGreatPost extends Command
|
|
|
$postData = $this->postData
|
|
|
->where('created_at', '>=', Carbon::yesterday()->startOfDay()->toDateTimeString())
|
|
|
->where('created_at', '<=', Carbon::yesterday()->endOfDay()->toDateTimeString())
|
|
|
- ->select();
|
|
|
+ ->get();
|
|
|
$postId = 0;
|
|
|
if($postData){
|
|
|
$postScore = 0;
|