MCPcopy Index your code
hub / github.com/simstudioai/sim / isInvitationExpired

Function isInvitationExpired

apps/sim/lib/invitations/core.ts:134–136  ·  view source on GitHub ↗
(inv: Pick<InvitationWithGrants, 'expiresAt'>)

Source from the content-addressed store, hash-verified

132}
133
134export function isInvitationExpired(inv: Pick<InvitationWithGrants, 'expiresAt'>): boolean {
135 return new Date() > new Date(inv.expiresAt)
136}
137
138/**
139 * Flip any still-pending invitations for the given organization whose

Callers 2

acceptInvitationFunction · 0.85
rejectInvitationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected