From 5ce23c0bdbcca84859c39a82569eec476ef52982 Mon Sep 17 00:00:00 2001 From: jahooma Date: Wed, 19 Jan 2022 12:43:12 -0600 Subject: [PATCH] Add userId to email template so users can unsubscribe --- functions/src/emails.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/src/emails.ts b/functions/src/emails.ts index a7ca2845..8650d981 100644 --- a/functions/src/emails.ts +++ b/functions/src/emails.ts @@ -4,6 +4,7 @@ import { sendTemplateEmail } from './send-email' import { getPrivateUser, getUser } from './utils' type market_resolved_template = { + userId: string name: string creatorName: string question: string @@ -35,6 +36,7 @@ export const sendMarketResolutionEmail = async ( const subject = `Resolved ${outcome}: ${contract.question}` const templateData: market_resolved_template = { + userId: user.id, name: user.name, creatorName: creator.name, question: contract.question,