modified assests
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Laboratory;
|
||||
use App\Models\Organization;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -41,7 +41,7 @@ class DisableLabAccess extends Command
|
||||
public function handle()
|
||||
{
|
||||
try{
|
||||
$labs = Laboratory::query()->where('record_status_id', 1)
|
||||
$labs = Organization::query()->where('record_status_id', 1)
|
||||
->whereRaw("DATEDIFF(end_date, CURDATE())<=-7")
|
||||
->update(['record_status_id' => 0]);
|
||||
Log::channel('jobs')->info($labs);
|
||||
|
||||
Reference in New Issue
Block a user