mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-04-18 20:44:46 +00:00
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m13s
10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
'use server'
|
|
|
|
import {createClient} from '@/lib/supabase/server'
|
|
|
|
export async function incrementViews(slug: string, title: string) {
|
|
if (slug !== null) {
|
|
const supabase = await createClient()
|
|
await supabase.rpc('increment_views', {param_slug: slug, param_title: title})
|
|
}
|
|
} |