diff --git a/app/Domains/Projects/DailyReportService.php b/app/Domains/Projects/DailyReportService.php index 4a696e41..04589e44 100644 --- a/app/Domains/Projects/DailyReportService.php +++ b/app/Domains/Projects/DailyReportService.php @@ -3,8 +3,8 @@ namespace App\Domains\Projects; use App\Domains\Messages\RoleEnum; -use App\Models\Task; use App\Models\Project; +use App\Models\Task; use App\Notifications\DailyReport; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Notification; diff --git a/app/Http/Controllers/DailyReportSendController.php b/app/Http/Controllers/DailyReportSendController.php index 4f51b607..5015c817 100644 --- a/app/Http/Controllers/DailyReportSendController.php +++ b/app/Http/Controllers/DailyReportSendController.php @@ -11,6 +11,7 @@ public function __invoke(Project $project) { DailyReportService::sendReport($project); \request()->session()->flash('flash.banner', 'Sent!'); + return back(); } } diff --git a/database/factories/ChatFactory.php b/database/factories/ChatFactory.php index 030da130..a0812292 100644 --- a/database/factories/ChatFactory.php +++ b/database/factories/ChatFactory.php @@ -36,5 +36,4 @@ public function withDrivers(): Factory ]; }); } - } diff --git a/routes/web.php b/routes/web.php index 9ecad88f..0681e4f2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -126,7 +126,6 @@ function () { Route::post('/daily-report/{project}', \App\Http\Controllers\DailyReportSendController::class)->name('daily-report.send'); - Route::controller(\App\Http\Controllers\AssistantEmailBoxSourceController::class)->group( function () { Route::get('/collections/{collection}/sources/email_source/create', 'create') diff --git a/tests/Feature/DailyReportServiceTest.php b/tests/Feature/DailyReportServiceTest.php index 67bbfeef..50106739 100644 --- a/tests/Feature/DailyReportServiceTest.php +++ b/tests/Feature/DailyReportServiceTest.php @@ -42,8 +42,6 @@ public function test_notify(): void 'team_id' => $team->id, ]); - - $chat = Chat::factory()->withDrivers()->create([ 'chatable_id' => $project->id, 'chatable_type' => Project::class,