mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-23 07:07:55 +00:00
1fe81ad6b4fe3dae1cfcfa85d09ca512876074bc
Issue: Dashboard was throwing 400 Bad Request when updating profiles table Root Cause: - Dashboard tried to update profiles.email_verified column - But this column doesn't exist in profiles table - Migration only has: username, email, full_name, avatar_url, referral fields Solution: - Removed sync logic that updates profiles.email_verified - Email verification is now ONLY read from Supabase Auth (user.email_confirmed_at) - No need to duplicate verification status in profiles table Benefits: - No more 400 errors - Single source of truth (Supabase Auth) - Cleaner code, less database writes UI still works correctly: - Account Status card checks: user?.email_confirmed_at || profile?.email_verified - Since user.email_confirmed_at exists, profile.email_verified is never needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
HTML
75.2%
TypeScript
21.3%
Rust
1.9%
PLpgSQL
0.7%
JavaScript
0.6%
Other
0.2%