MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / failAuditCallback

Function failAuditCallback

packages/web/src/app/invite/actions.ts:96–112  ·  view source on GitHub ↗
(error: string)

Source from the content-addressed store, hash-verified

94 }
95
96 const failAuditCallback = async (error: string) => {
97 await createAudit({
98 action: "user.invite_accept_failed",
99 actor: {
100 id: user.id,
101 type: "user"
102 },
103 target: {
104 id: inviteId,
105 type: "invite"
106 },
107 orgId: invite.org.id,
108 metadata: {
109 message: error
110 }
111 });
112 };
113
114 const hasAvailability = await orgHasAvailability(invite.org.id);
115 if (!hasAvailability) {

Callers 1

redeemInviteFunction · 0.70

Calls 1

createAuditFunction · 0.90

Tested by

no test coverage detected