fix: use public supabase client for public endpoints

This commit is contained in:
Marco Gallegos
2026-01-18 00:09:50 -06:00
parent 1ca7a2cfbc
commit 2c19c49f14
2 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
import { NextRequest, NextResponse } from 'next/server'
import { supabaseAdmin } from '@/lib/supabase/admin'
import { supabase } from '@/lib/supabase/client'
/**
* @description Retrieves all active locations
*/
export async function GET(request: NextRequest) {
try {
const { data: locations, error } = await supabaseAdmin
const { data: locations, error } = await supabase
.from('locations')
.select('*')
.eq('is_active', true)