Skip to content

Commit 6632a79

Browse files
committed
Add the send option
1 parent fe71d3f commit 6632a79

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

app/Domains/Projects/DailyReportService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace App\Domains\Projects;
44

55
use App\Domains\Messages\RoleEnum;
6-
use App\Models\Task;
76
use App\Models\Project;
7+
use App\Models\Task;
88
use App\Notifications\DailyReport;
99
use Illuminate\Support\Facades\Log;
1010
use Illuminate\Support\Facades\Notification;

app/Http/Controllers/DailyReportSendController.php

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public function __invoke(Project $project)
1111
{
1212
DailyReportService::sendReport($project);
1313
\request()->session()->flash('flash.banner', 'Sent!');
14+
1415
return back();
1516
}
1617
}

database/factories/ChatFactory.php

-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ public function withDrivers(): Factory
3636
];
3737
});
3838
}
39-
4039
}

routes/web.php

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ function () {
126126

127127
Route::post('/daily-report/{project}', \App\Http\Controllers\DailyReportSendController::class)->name('daily-report.send');
128128

129-
130129
Route::controller(\App\Http\Controllers\AssistantEmailBoxSourceController::class)->group(
131130
function () {
132131
Route::get('/collections/{collection}/sources/email_source/create', 'create')

tests/Feature/DailyReportServiceTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ public function test_notify(): void
4242
'team_id' => $team->id,
4343
]);
4444

45-
46-
4745
$chat = Chat::factory()->withDrivers()->create([
4846
'chatable_id' => $project->id,
4947
'chatable_type' => Project::class,

0 commit comments

Comments
 (0)