* feat: invitation link schema and apis * feat: add invitation link * feat: member status: active, leave, forbidden * fix: expires show hours and minutes * feat: invalid invitation link hint * fix: typo * chore: fix typo & i18n * fix * pref: fe * feat: add ttl index for 30-day-clean-up
4 lines
150 B
TypeScript
4 lines
150 B
TypeScript
export function isForbidden({ expires, forbidden }: { expires: Date; forbidden?: boolean }) {
|
|
return forbidden || new Date(expires) < new Date();
|
|
}
|