mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/tickme.git
synced 2026-08-19 04:23:56 +00:00
minor fixes
This commit is contained in:
@@ -36,7 +36,6 @@ class TimeTrackerController
|
||||
}
|
||||
|
||||
public function completeTask(int $taskId){
|
||||
|
||||
$tracker = timeTracker::where('trackable_type', Task::class)->where('trackable_id', $taskId)
|
||||
->where('user_id', Auth::user()->getAuthIdentifier())->where('time_end', null)->first();
|
||||
$tracker->time_end = Carbon::now();
|
||||
@@ -56,7 +55,7 @@ class TimeTrackerController
|
||||
$milestone->save();
|
||||
}
|
||||
|
||||
$project = $milestone->project->first();
|
||||
$project = $milestone->project;
|
||||
$projectPendingTasks = $project->tasks->where('status', '!=', 12);
|
||||
|
||||
if(!$projectPendingTasks->count()){
|
||||
|
||||
Reference in New Issue
Block a user