Browse Source

disable queue

pull/3/head
wahyu 1 year ago
parent
commit
427449bb26
  1. 15
      app/Http/Controllers/ProjectController.php

15
app/Http/Controllers/ProjectController.php

@ -329,15 +329,18 @@ class ProjectController extends Controller
}
public function sCurveCommand(Request $request){
$project = Project::find($request->project_id);
Artisan::call('calculate:scurve', [
'project_id' => $request->project_id
]);
// $project = Project::find($request->project_id);
if ($project) {
dispatch(new ProcessSCurve($project));
// if ($project) {
// dispatch(new ProcessSCurve($project));
return response()->json(['message' => 'S Curve calculation queued']);
}
// return response()->json(['message' => 'S Curve calculation queued']);
// }
return response()->json(['message' => 'Project not found'], 404);
// return response()->json(['message' => 'Project not found'], 404);
}
public function getLinearSCurve(Request $request){

Loading…
Cancel
Save