Skip to content

Commit

Permalink
fix whitelist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Dec 23, 2024
1 parent df5ccea commit a703c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/utils/actions/whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getSessionAndGmailClient } from "@/utils/actions/helpers";
import { withActionInstrumentation } from "@/utils/actions/middleware";
import { isActionError } from "@/utils/error";
import { createFilter } from "@/utils/gmail/filter";
import { INBOX_LABEL_ID, SPAM_LABEL_ID } from "@/utils/gmail/label";
import { SPAM_LABEL_ID } from "@/utils/gmail/label";

export const whitelistInboxZeroAction = withActionInstrumentation(
"whitelistInboxZero",
Expand All @@ -19,7 +19,7 @@ export const whitelistInboxZeroAction = withActionInstrumentation(
await createFilter({
gmail,
from: env.WHITELIST_FROM,
addLabelIds: [INBOX_LABEL_ID],
addLabelIds: ["CATEGORY_PERSONAL"],
removeLabelIds: [SPAM_LABEL_ID],
});
},
Expand Down

1 comment on commit a703c21

@vercel
Copy link

@vercel vercel bot commented on a703c21 Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.