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