Skip to content

Commit

Permalink
fix: remove email testing list
Browse files Browse the repository at this point in the history
  • Loading branch information
swh00tw committed Feb 29, 2024
1 parent aed63b3 commit b81f166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/recnet/src/app/api/sendDigest/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import WeeklyDigest from "../../../../emails/WeeklyDigest";
import { render } from "@react-email/render";
import { NextRequest, NextResponse } from "next/server";

const TEST_USER_IDS = ["GoXnHBhgK8QhcZpki0la"];
// const TEST_USER_IDS = ["GoXnHBhgK8QhcZpki0la"];

export async function GET(request: NextRequest) {
if (
Expand Down Expand Up @@ -39,9 +39,9 @@ export async function GET(request: NextRequest) {
const user = res.data;

// test within certain user ids
if (!TEST_USER_IDS.includes(user.id)) {
return;
}
// if (!TEST_USER_IDS.includes(user.id)) {
// return;
// }

const recs = await getFeedsRecs(user?.id, getLatestCutOff().getTime());
const recsWithUsers = await getRecsWithUsers(recs);
Expand Down

0 comments on commit b81f166

Please sign in to comment.