Skip to content

Commit

Permalink
fix(perf): optimized convex queries comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Nov 11, 2024
1 parent f3d0988 commit 6065398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convex/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const updateUserData = mutation({
updates.firstName = args.data.firstName;
}

// Use one patch instead of a few singular patches for better performance
await user.patch(updates);
},
});

0 comments on commit 6065398

Please sign in to comment.