fix(group): preserve identity through lifecycle

Group names are mutable and reusable, so they cannot own durable
state. Preserve immutable identities across lifecycle operations and
commit invite use with membership under transaction-time guards.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:27 +08:00
1 parent c853f2910f
commit 81af2053c0
6 files changed
+985 -179

No files matched your search

+1 -1
View File
@@ -533,7 +533,7 @@ export async function adminInvite(event: H3Event): Promise<void> {
);
return;
}
const result = await acceptInvite(env.KV, token, session.userId, session.login);
const result = await acceptInvite(env, token, session.userId, session.login);
if (result.ok) {
await recordAudit(env.DB, {
ts: Date.now(),