fix handle sync using button

This commit is contained in:
arifal
2025-03-18 08:10:06 +07:00
parent 5e139bc29c
commit e940b8d6c7
4 changed files with 61 additions and 20 deletions

View File

@@ -23,8 +23,8 @@ class ScrapingController extends Controller
return $this->resError("Failed to execute while processing another scraping");
}
// run service artisan command
SyncronizeSIMBG::dispatch();
// dispatch(new SyncronizeSIMBG());
Artisan::call("app:scraping-data");
return $this->resSuccess(["message" => "Success execute scraping service on background, check status for more"]);
}