* Clear pending marketing opt-in after it has been applied to the web account.
(slackUserId: string)
| 951 | * Clear pending marketing opt-in after it has been applied to the web account. |
| 952 | */ |
| 953 | async clearPendingMarketingOptIn(slackUserId: string): Promise<void> { |
| 954 | await query( |
| 955 | `UPDATE slack_user_mappings |
| 956 | SET pending_marketing_opt_in = NULL, pending_marketing_opt_in_at = NULL, updated_at = NOW() |
| 957 | WHERE slack_user_id = $1`, |
| 958 | [slackUserId] |
| 959 | ); |
| 960 | } |
| 961 | |
| 962 | } |
no test coverage detected