14 lines
322 B
TypeScript
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);
|
|
}
|
|
};
|