Skip to content

Commit

Permalink
Add the send option
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 10, 2024
1 parent fe71d3f commit 6632a79
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Domains/Projects/DailyReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/DailyReportSendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __invoke(Project $project)
{
DailyReportService::sendReport($project);
\request()->session()->flash('flash.banner', 'Sent!');

return back();
}
}
1 change: 0 additions & 1 deletion database/factories/ChatFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ public function withDrivers(): Factory
];
});
}

}
1 change: 0 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions tests/Feature/DailyReportServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6632a79

Please sign in to comment.