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:
parent
e0810781f4
commit
c9c37a2a28
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue