feat: update template
This commit is contained in:
@@ -30,7 +30,7 @@ WITH visitor AS (
|
||||
)
|
||||
INSERT INTO post_stats (
|
||||
post_id,
|
||||
view
|
||||
view_count
|
||||
)
|
||||
SELECT
|
||||
post_id,
|
||||
@@ -38,7 +38,7 @@ SELECT
|
||||
FROM visitor
|
||||
ON CONFLICT (post_id)
|
||||
DO UPDATE
|
||||
SET view = post_stats.view + 1
|
||||
SET view_count = post_stats.view_count + 1
|
||||
`
|
||||
|
||||
type IncrementPostStatsViewParams struct {
|
||||
|
||||
Reference in New Issue
Block a user