Skip to content

Commit

Permalink
update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosun18 committed Dec 6, 2023
1 parent ebfd4ce commit f05ff1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@
// $statement->execute([$url_id]);
$urlToCheck = $pdo->query($query)->fetchColumn();

// $createdAt = Carbon::now();
$createdAt = Carbon::now();

$client = $this->get('client');
// $client = new Client();

try {
$result = $client->get($urlToCheck['name']);
$result = $client->get($urlToCheck);
$statusCode = $result->getStatusCode();
$this->get('flash')->addMessage('success', 'Страница успешно проверена');
} catch (ClientException $e) {
Expand Down

0 comments on commit f05ff1c

Please sign in to comment.