diff --git a/src/components/comment/Comments.astro b/src/components/comment/Comments.astro index bde653d..462a5f9 100644 --- a/src/components/comment/Comments.astro +++ b/src/components/comment/Comments.astro @@ -1,6 +1,7 @@ --- -import { increaseViews, loadComments } from '@/components/comment/artalk'; +import { loadComments } from '@/components/comment/artalk'; import Comment from '@/components/comment/Comment.astro'; +import { increaseViews } from '@/helpers/db/query'; import { urlJoin } from '@/helpers/tools'; import options from '@/options'; @@ -14,7 +15,7 @@ const { commentKey, title } = Astro.props; const comments = await loadComments(commentKey, title, 0); // Increase the PV. -await increaseViews(commentKey, title); +await increaseViews(commentKey); ---