Fix send-auth-otp: Remove notification_logs references

- Remove notification_logs table references (table doesn't exist)
- This was causing the function to crash after sending email
- Now the function should complete successfully
- Added better email payload logging
- Keep .env file for local development
This commit is contained in:
dwindown
2026-01-02 15:07:41 +07:00
parent fa1adcf291
commit 08e56a22d8
8 changed files with 421 additions and 31 deletions

14
check_email_logs.sql Normal file
View File

@@ -0,0 +1,14 @@
-- Check recent notification logs for auth_email_verification
SELECT
id,
user_id,
email,
notification_type,
status,
provider,
error_message,
created_at
FROM notification_logs
WHERE notification_type = 'auth_email_verification'
ORDER BY created_at DESC
LIMIT 5;