aboutsummaryrefslogtreecommitdiff
path: root/pkg/database
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-17 10:59:45 +0000
committerFuwn <[email protected]>2021-07-17 10:59:45 +0000
commitfeecffd260cf00ba5d55b09894979ed9e66604e6 (patch)
tree4c9f00692eecf3c9bd828de63cbb24964368ce7d /pkg/database
parentfeat(route): blog handler for multi-blog support (diff)
downloadspace-feecffd260cf00ba5d55b09894979ed9e66604e6.tar.xz
space-feecffd260cf00ba5d55b09894979ed9e66604e6.zip
refactor(route): move hit ticker to db layer
Diffstat (limited to 'pkg/database')
-rw-r--r--pkg/database/database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/database/database.go b/pkg/database/database.go
index 9d14fa9..8aa658c 100644
--- a/pkg/database/database.go
+++ b/pkg/database/database.go
@@ -36,7 +36,7 @@ func Get(path string) int {
return 0
}
- return hit.Count
+ return hit.Count + 1
}
func Create(path string) {