Skip to content

Commit c153248

Browse files
committed
Resend improvements
1 parent 368aa5c commit c153248

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

workers/transactional_email_service/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ import { Resend } from "resend";
55

66
import { sendTransactionalHTMLEmail } from "~/datasources/email/sendTransactionalHTMLEmail";
77
import { createLogger } from "~/logging";
8+
import { ENV } from "~workers/transactional_email_service/types";
89

910
import { PurchaseOrderSuccessful } from "../../emails/templates/tickets/purchase-order-successful";
1011

11-
type ENV = {
12-
RESEND_API_KEY: string | undefined;
13-
};
1412
export default class EmailService extends WorkerEntrypoint<ENV> {
1513
logger = createLogger("EmailService");
1614

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
export type ENV = {
2-
NEON_URL: string;
3-
HIGHLIGHT_PROJECT_ID: string;
4-
MP_ACCESS_TOKEN: string;
5-
MP_PUBLIC_KEY: string;
6-
ST_KEY: string;
7-
RV_KEY: string;
2+
RESEND_API_KEY: string | undefined;
83
};

0 commit comments

Comments
 (0)