From c1d0a540ed32346c1022666accd7e8b93fc1ac9b Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Sun, 12 Jul 2020 19:41:23 +0300 Subject: [PATCH] Fix database table name --- src/CounterDatabaseRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CounterDatabaseRepository.php b/src/CounterDatabaseRepository.php index e633862..d8895c0 100644 --- a/src/CounterDatabaseRepository.php +++ b/src/CounterDatabaseRepository.php @@ -29,7 +29,7 @@ final class CounterDatabaseRepository implements CounterRepositoryInterface { $statement = $this->connection->prepare( 'SELECT COUNT(*) - FROM page_views + FROM github_profile_views WHERE username = :username;' ); $statement->bindParam('username', $username); @@ -41,7 +41,7 @@ final class CounterDatabaseRepository implements CounterRepositoryInterface public function incrementCountByUsername(string $username): void { $statement = $this->connection->prepare( - 'INSERT INTO page_views + 'INSERT INTO github_profile_views (username, created_at) VALUES (:username, NOW());' );