Skip to content

Commit d407408

Browse files
committed
- Remove old .htaccess
- Add missing lastAccessed update
1 parent 3541842 commit d407408

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/.htaccess

Lines changed: 0 additions & 2 deletions
This file was deleted.

server/actions/patterns/load.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function execute() {
7272
}
7373

7474
function trackVisit($id) {
75-
$sql = "UPDATE patterns SET visits=visits+1 WHERE id=?";
75+
$sql = "UPDATE patterns SET visits=visits+1, lastAccessed=NOW() WHERE id=?";
7676
$this->db->execute($sql, [
7777
["s", $id]
7878
]);
@@ -84,3 +84,4 @@ public function getSchema() {
8484
);
8585
}
8686
}
87+

0 commit comments

Comments
 (0)