1 Commits
Author SHA1 Message Date
AntaresandCopilot 851e1672e7 core: fix: upsert each user when setting roles in bulk (#1224)
* fix(domain): upsert each user when setting roles in bulk

Use per-UID bulk upserts for batch role assignment and skip empty batches while preserving cache invalidation and autojoin behavior.

Fixes hydro-dev/Hydro#1223

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* perf(domain): deduplicate UIDs before bulk role updates

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-14 09:09:29 +00:00