@remit/smtp-worker 0.0.35 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/data-ports.ts +1 -0
- package/src/handlers/send-message.ts +5 -1
- package/src/ports.ts +2 -0
package/package.json
CHANGED
package/src/data-ports.ts
CHANGED
|
@@ -30,6 +30,7 @@ const buildSqliteDataPorts = async (): Promise<SmtpDataPorts> => {
|
|
|
30
30
|
account: repositories.account,
|
|
31
31
|
outboxMessage: repositories.outboxMessage,
|
|
32
32
|
outboxAttachment: repositories.outboxAttachment,
|
|
33
|
+
outboxSchedulingPart: repositories.outboxSchedulingPart,
|
|
33
34
|
address: repositories.address,
|
|
34
35
|
message: repositories.message,
|
|
35
36
|
envelope: repositories.envelope,
|
|
@@ -373,7 +373,11 @@ export const handleSendMessage = async (
|
|
|
373
373
|
"sending",
|
|
374
374
|
);
|
|
375
375
|
|
|
376
|
-
const message = buildMailMessage(
|
|
376
|
+
const message = buildMailMessage(
|
|
377
|
+
outbox,
|
|
378
|
+
attachments,
|
|
379
|
+
await ports.outboxSchedulingPart.find(outboxMessageId),
|
|
380
|
+
);
|
|
377
381
|
|
|
378
382
|
log.info(
|
|
379
383
|
{ outboxMessageId, to: outbox.toAddresses, subject: outbox.subject },
|
package/src/ports.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
IMessageRepository,
|
|
6
6
|
IOutboxAttachmentRepository,
|
|
7
7
|
IOutboxMessageRepository,
|
|
8
|
+
IOutboxSchedulingPartRepository,
|
|
8
9
|
} from "@remit/data-ports";
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -15,6 +16,7 @@ export interface SmtpDataPorts {
|
|
|
15
16
|
account: IAccountRepository;
|
|
16
17
|
outboxMessage: IOutboxMessageRepository;
|
|
17
18
|
outboxAttachment: IOutboxAttachmentRepository;
|
|
19
|
+
outboxSchedulingPart: IOutboxSchedulingPartRepository;
|
|
18
20
|
address: IAddressRepository;
|
|
19
21
|
message: IMessageRepository;
|
|
20
22
|
envelope: IEnvelopeRepository;
|