Skip to content

Commit

Permalink
Hmm I need to make sure the CreateTaskTool uses user ids only
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 10, 2024
1 parent 640ee9e commit bf254a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Modules/LlmDriver/app/Functions/CreateTasksTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function handle(
'details' => $details,
'due_date' => $due_date,
'assistant' => $assistant,
'user_id' => ($user_id !== '' && User::whereId($user_id)->exists()) ? $user_id : null,
'user_id' => null, //@TODO coming back to this
]);
}

Expand Down
2 changes: 0 additions & 2 deletions routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
\Illuminate\Support\Facades\Schedule::command('app:check_email')
->everyMinute();



\Illuminate\Support\Facades\Schedule::call(function () {
(new \App\Domains\Projects\DailyReportService())->handle();
})->dailyAt('05:00');
4 changes: 2 additions & 2 deletions tests/Feature/Models/ProjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public function test_model(): void
$this->assertNotNull($model->tasks->first()->id);
}

public function test_active() {
public function test_active()
{
$model = Project::factory()->create([
'start_date' => now()->subDays(5),
'end_date' => now()->subDays(2),
]);

$this->assertEmpty(Project::active()->get());
}

}

0 comments on commit bf254a4

Please sign in to comment.