diff --git a/supabase/functions/send-notification/index.ts b/supabase/functions/send-notification/index.ts index b36f1ce..ad83067 100644 --- a/supabase/functions/send-notification/index.ts +++ b/supabase/functions/send-notification/index.ts @@ -215,7 +215,7 @@ serve(async (req: Request): Promise => { const { data: template, error: templateError } = await supabase .from("notification_templates") .select("*") - .eq("template_key", template_key) + .eq("key", template_key) .eq("is_active", true) .single();