From 6c3338f5d763d92d2ab4ee6466efe888fa663ba3 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 20 Sep 2022 09:59:48 -0400 Subject: [PATCH] Remove unused unsubscribe attributes --- common/user.ts | 5 ----- firestore.rules | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/common/user.ts b/common/user.ts index 44b0e59b..0372d99b 100644 --- a/common/user.ts +++ b/common/user.ts @@ -56,11 +56,6 @@ export type PrivateUser = { username: string // denormalized from User email?: string - unsubscribedFromResolutionEmails?: boolean - unsubscribedFromCommentEmails?: boolean - unsubscribedFromAnswerEmails?: boolean - unsubscribedFromGenericEmails?: boolean - unsubscribedFromWeeklyTrendingEmails?: boolean weeklyTrendingEmailSent?: boolean manaBonusEmailSent?: boolean initialDeviceToken?: string diff --git a/firestore.rules b/firestore.rules index a9ef98e5..26649fa6 100644 --- a/firestore.rules +++ b/firestore.rules @@ -78,7 +78,7 @@ service cloud.firestore { allow read: if userId == request.auth.uid || isAdmin(); allow update: if (userId == request.auth.uid || isAdmin()) && request.resource.data.diff(resource.data).affectedKeys() - .hasOnly(['apiKey', 'unsubscribedFromResolutionEmails', 'unsubscribedFromCommentEmails', 'unsubscribedFromAnswerEmails', 'unsubscribedFromWeeklyTrendingEmails', 'notificationPreferences', 'twitchInfo']); + .hasOnly(['apiKey', 'notificationPreferences', 'twitchInfo']); } match /private-users/{userId}/views/{viewId} {