(workosUserId: string)
| 1117 | * Check if we've already sent a Slack invite email to this user |
| 1118 | */ |
| 1119 | export async function hasSlackInviteBeenSent(workosUserId: string): Promise<boolean> { |
| 1120 | return emailDb.hasEmailBeenSent({ |
| 1121 | email_type: 'slack_invite', |
| 1122 | workos_user_id: workosUserId, |
| 1123 | }); |
| 1124 | } |
| 1125 | |
| 1126 | /** |
| 1127 | * Send Slack invite email to website-only users |
no test coverage detected