Skip to content

Commit

Permalink
Cleaning up some bugs:
Browse files Browse the repository at this point in the history
-
  • Loading branch information
diego-maeda committed Apr 13, 2024
1 parent 1f6b05c commit a9c260e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 106 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use App\Models\Language;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;

/**
* This controller handles updating a user's preferred language within the application.
Expand Down
3 changes: 0 additions & 3 deletions app/Listeners/DispatchLifxNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function handle(DomesticAbuseDetected $event): void
$lamps = $user->lamps()->where(['blink_safety_connected' => true])->get();

foreach ($lamps as $lamp) {
Log::info('Lamp triggered id : ' . $lamp->lamp_id);
$response = Http::withHeaders([
'Authorization' => 'Bearer ' . $token->access_token
])->post('https://api.lifx.com/v1/lights/id:' . $lamp->lamp_id . '/effects/breathe', [
Expand All @@ -50,8 +49,6 @@ public function handle(DomesticAbuseDetected $event): void
'peak' => 0.5
]);

Log::info($response->json());

Http::withHeaders([
'Authorization' => 'Bearer ' . $token->access_token,
])->post('https://api.lifx.com/v1/lights/id:' . $lamp->lamp_id . '/effects/off', [
Expand Down
51 changes: 0 additions & 51 deletions resources/img/icons/english.svg

This file was deleted.

51 changes: 0 additions & 51 deletions resources/img/icons/portuguese.svg

This file was deleted.

0 comments on commit a9c260e

Please sign in to comment.