fix: Phase 8a - fix users.update function call (24 -> 23 errors)

Fixed incorrect function call to users.update by removing extra fetch argument.

The issue: settings page was calling users.update(fetch, userId, updateData)
but the function signature is users.update(userId, updateData).

The fetch parameter is not needed - the users.update function uses the global
fetch internally via userAdapter.

Changes:
- src/routes/settings/+page.svelte:
  - Removed fetch argument from users.update call
  - Changed from: users.update(fetch, account.userId, updateData)
  - Changed to: users.update(account.userId, updateData)

Result: 24 → 23 errors (-1)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-11-28 20:05:12 -08:00
parent e0810781f4
commit c9c37a2a28

View file

@ -84,7 +84,7 @@
}
// Call API to update user settings
const response = await users.update(fetch, account.userId, updateData)
const response = await users.update(account.userId, updateData)
// Update the user cookie
const updatedUser: UserCookie = {