Fix API token mapping and add extensive debug logging
- Fixed api_token vs mailketing_api_token column mapping - Added comprehensive debug logging to send-auth-otp - Added fallback logic for missing settings fields - Improved error messages for troubleshooting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
20
check_template.sh
Executable file
20
check_template.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Test query to check if template exists and what's in the table
|
||||
# Run this in your Supabase SQL editor or via psql
|
||||
|
||||
echo "=== Check if template exists ==="
|
||||
cat << 'SQL'
|
||||
-- Check if template exists
|
||||
SELECT key, name, is_active
|
||||
FROM notification_templates
|
||||
WHERE key = 'auth_email_verification';
|
||||
|
||||
-- Check all templates
|
||||
SELECT key, name, is_active
|
||||
FROM notification_templates
|
||||
ORDER BY key;
|
||||
|
||||
-- Check table structure
|
||||
\d notification_templates;
|
||||
SQL
|
||||
Reference in New Issue
Block a user