Skip to content

Commit

Permalink
feat: add log for sending email
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Apr 17, 2024
1 parent c783a22 commit 6290c4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/api/send/POST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ export default new Endpoint({ Input, Output, Error, Modifier: TokenAuth }).handl
})
.executeTakeFirst();

param.dkim_domain ??= (await config.get("dkim_domain")) ?? undefined;
param.dkim_selector ??= (await config.get("dkim_selector")) ?? undefined;
param.dkim_private_key ??= (await config.get("dkim_private_key")) ?? undefined;
param.dkim_domain ||= (await config.get("dkim_domain")) ?? undefined;
param.dkim_selector ||= (await config.get("dkim_selector")) ?? undefined;
param.dkim_private_key ||= (await config.get("dkim_private_key")) ?? undefined;

console.log("sending email", param);

const req = new Request("https://api.mailchannels.net/tx/v1/send", {
method: "POST",
Expand Down

0 comments on commit 6290c4b

Please sign in to comment.