Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- name: Generate Prisma client
run: pnpm --filter=web db:generate

- name: Type check
run: pnpm --filter=web typecheck

- name: Prepare test database schema
run: pnpm --filter=web test:integration:prepare

Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"test:integration": "RUN_INTEGRATION=true vitest run -c vitest.integration.config.ts",
"test:integration:full": "pnpm test:integration:prepare:local && pnpm test:integration",
"test:coverage": "vitest run -c vitest.default.config.ts --coverage",
"typecheck": "tsc --noEmit --pretty false",
"db:post-install": "prisma generate",
"db:generate": "prisma generate",
"db:push": "prisma db push --skip-generate",
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/server/service/ses-hook-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ export async function parseSesHook(data: SesEvent) {
return true;
}

const isEngagementEvent = [EmailStatus.OPENED, EmailStatus.CLICKED].includes(
mailStatus,
);
const isEngagementEvent =
mailStatus === EmailStatus.OPENED || mailStatus === EmailStatus.CLICKED;
const existingMailEvent =
email.campaignId || isEngagementEvent
? await db.emailEvent.findFirst({
Expand Down
Loading