mirror of
https://github.com/antonkomarev/github-profile-views-counter.git
synced 2026-07-29 00:32:40 -04:00
Fix database table name
This commit is contained in:
@@ -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());'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user