AIvoices/frontend-nextjs/db/inbound.ts
2025-04-08 14:05:27 +01:00

14 lines
322 B
TypeScript

import { SupabaseClient } from "@supabase/supabase-js";
export const createInbound = async (
supabase: SupabaseClient,
inbound: IInbound
) => {
const { error } = await supabase
.from("inbound")
.insert([inbound as IInbound]);
if (error) {
// console.log("error", error);
}
};