feat(MED-131): use existing supabase server admin client conf

This commit is contained in:
2025-08-04 11:51:28 +03:00
parent 12465e18fb
commit d7d089c11d
5 changed files with 56 additions and 53 deletions

View File

@@ -0,0 +1,8 @@
import { getSupabaseServerAdminClient } from "@kit/supabase/server-admin-client";
import type { ICode } from "~/lib/types/code";
export const createCodes = async (codes: ICode[]) => {
await getSupabaseServerAdminClient()
.schema('medreport').from('codes')
.upsert(codes);
}