mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
fix: clear revoked Guardian sessions
Return a removed Guardian's browsers to their own record.
This commit is contained in:
1 parent
ffe3225639
commit
32380b1935
2 files changed
+13
No files matched your search
@@ -542,6 +542,10 @@ export async function revokeManagedProfileGuardian(input: {
|
||||
where: { id: target.id },
|
||||
data: { revokedAt: new Date(), revokedBy: "GRANTOR" },
|
||||
});
|
||||
await clearActingSessions(
|
||||
{ grantorId: profile.id, granteeId: target.granteeId },
|
||||
tx,
|
||||
);
|
||||
return tx.accountGrant.findUniqueOrThrow({ where: { id: target.id } });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user