From d12189ae0810b6406490ca2028fc28597c99b662 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 9 Mar 2022 12:27:12 -0600 Subject: [PATCH] Fix unsubscribe from market resolution emails --- functions/src/unsubscribe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/unsubscribe.ts b/functions/src/unsubscribe.ts index 25b11771..29ede67e 100644 --- a/functions/src/unsubscribe.ts +++ b/functions/src/unsubscribe.ts @@ -16,7 +16,7 @@ export const unsubscribe = functions const { name } = user const update: Partial = { - ...(type === 'market-resolve' && { + ...((type === 'market-resolve' || type === 'market-resolved') && { unsubscribedFromResolutionEmails: true, }), ...(type === 'market-comment' && {