Skip to content

Commit

Permalink
🐛 Bug - fixing visual diff controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Melbourne committed Feb 9, 2021
1 parent 5327c4f commit 4cb79f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/Checkers/BrowserConsole.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function shouldReport($messages)
return false;
}

foreach (config('odin.ignore_console_errors') as $phrase) {
foreach (config('app.ignore_console_errors') as $phrase) {
if (Str::contains($messages, $phrase)) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/VisualDiffsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __invoke(Request $request, Website $website)
if ($result->count() !== 2) {
return null;
}

$previous = $result->last();
$current = $result->first();

Expand All @@ -54,7 +54,7 @@ public function __invoke(Request $request, Website $website)
'diff' => $current->diff_url,
'date' => $current->created_at,
];
})->filter();
})->filter()->values();
}

/**
Expand Down
4 changes: 4 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
// How many days of uptime to report on? This effects DB performance.
'max_uptime_age' => env('MAX_UPTIME_AGE', 90),

'ignore_console_errors' => [
'app/Crawler/browser.js',
],

/*
|--------------------------------------------------------------------------
| Application Name
Expand Down
7 changes: 0 additions & 7 deletions config/odin.php

This file was deleted.

0 comments on commit 4cb79f1

Please sign in to comment.