mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 09:11:13 -05:00
feat: Implement plan for bug fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { invokeWithTracking } from '@/lib/edgeFunctionTracking';
|
||||
import { logger } from '@/lib/logger';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
|
||||
@@ -14,9 +15,11 @@ interface EmailValidationResult {
|
||||
*/
|
||||
export async function validateEmailNotDisposable(email: string): Promise<EmailValidationResult> {
|
||||
try {
|
||||
const { data, error } = await supabase.functions.invoke('validate-email-backend', {
|
||||
body: { email }
|
||||
});
|
||||
const { data, error } = await invokeWithTracking(
|
||||
'validate-email-backend',
|
||||
{ email },
|
||||
undefined
|
||||
);
|
||||
|
||||
if (error) {
|
||||
logger.error('Email validation error from backend', {
|
||||
|
||||
Reference in New Issue
Block a user