diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-14 03:07:02 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-14 15:20:16 +0800 |
commit | 096f6ca0fa344363b4c76b7418a5743f9536034c (patch) | |
tree | 722a3e6152b8aa2940268555edb1fe842941d097 /deno/mail-relay/aws/app.ts | |
parent | 0e4a5e2a74b3077b1108502c8d263cb85ae02ed0 (diff) | |
download | crupest-096f6ca0fa344363b4c76b7418a5743f9536034c.tar.gz crupest-096f6ca0fa344363b4c76b7418a5743f9536034c.tar.bz2 crupest-096f6ca0fa344363b4c76b7418a5743f9536034c.zip |
deno & nvim: turn back to use deno fmt instead of prettier.
Diffstat (limited to 'deno/mail-relay/aws/app.ts')
-rw-r--r-- | deno/mail-relay/aws/app.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deno/mail-relay/aws/app.ts b/deno/mail-relay/aws/app.ts index 13db351..cb275ae 100644 --- a/deno/mail-relay/aws/app.ts +++ b/deno/mail-relay/aws/app.ts @@ -18,7 +18,7 @@ import { } from "./mail.ts"; import { AwsMailDeliverer } from "./deliver.ts"; import { AwsMailFetcher, AwsS3MailConsumer } from "./fetch.ts"; -import { createInbound, createHono, sendMail, createSmtp } from "../app.ts"; +import { createHono, createInbound, createSmtp, sendMail } from "../app.ts"; const PREFIX = "crupest-mail-server"; const CONFIG_DEFINITIONS = { @@ -103,7 +103,7 @@ function createOutbound( ); deliverer.postHooks.push( new AwsMailMessageIdSaveHook((original, aws) => - db.addMessageIdMap({ message_id: original, aws_message_id: aws }).then(), + db.addMessageIdMap({ message_id: original, aws_message_id: aws }).then() ), ); return deliverer; @@ -210,8 +210,10 @@ function createServerServices() { path: config.get("awsInboundPath"), auth: config.get("awsInboundKey"), callback: (s3Key, recipients) => { - return fetcher.consumeS3Mail(s3Key, (rawMail, _) => - inbound.deliver({ mail: new Mail(rawMail), recipients }).then(), + return fetcher.consumeS3Mail( + s3Key, + (rawMail, _) => + inbound.deliver({ mail: new Mail(rawMail), recipients }).then(), ); }, }); |