mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-22 03:26:18 +00:00
c9939ee6563d2a83ef07ee2802834cb7f31a3db3
Changes: 1. Created migration 003_fix_profile_creation.sql: - Added INSERT policy for profiles table - Made username nullable with default value - Created upsert_profile function for safe upserts 2. Updated ProfileSettings.tsx: - Changed from .update() to .upsert() - Added id field to upsert data - Added loadProfile() call after save to refresh state This fixes the issue where users couldn't update their profile because no profile row existed in the database. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
82.9%
PLpgSQL
8.8%
Rust
3.9%
JavaScript
2.4%
CSS
0.7%
Other
1.2%