mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
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:
1 parent
c853f2910f
commit
81af2053c0
6 files changed
+985
-179
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user