Esempio n. 1
0
 protected function fetchDependLimitTimeByQue()
 {
     if ($this->que->type->id === $this->que->type->depend_on_id) {
         return Carbon::now();
     }
     $dependQue = FVSyncQue::latest()->where('type_id', '=', FVSyncType::where('id', '=', $this->que->type->depend_on_id)->first()->id)->whereNotNull('last_modified_at')->where('status_code', '=', FVSyncQue::STATUS_COMPLETE)->first();
     return NULL === $dependQue ? Carbon::now() : $dependQue->last_modified_at;
 }
Esempio n. 2
0
 public function index()
 {
     return view('viga.que.index', ['ques' => FVSyncQue::latest()->paginate(env('QUE_COUNT_PERPAGE', 100)), 'limit' => env('QUE_COUNT_PERPAGE', 100)]);
 }