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