@social-mail/social-mail-web-server 1.7.511 → 1.7.515
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/dist/server/services/store/StorePaymentGatewayService.d.ts +1 -2
- package/dist/server/services/store/StorePaymentGatewayService.d.ts.map +1 -1
- package/dist/server/services/store/StorePaymentGatewayService.js.map +1 -1
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.d.ts +2 -1
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.js +7 -4
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.js.map +1 -1
- package/dist/server/workflows/daily/DailyWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/daily/DailyWorkflow.js +3 -1
- package/dist/server/workflows/daily/DailyWorkflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/store/StorePaymentGatewayService.ts +0 -2
- package/src/server/workflows/channel/library/SendLibraryContentWorkflow.ts +3 -3
- package/src/server/workflows/daily/DailyWorkflow.ts +4 -1
package/package.json
CHANGED
|
@@ -3,10 +3,8 @@ import SocialMailContext from "../../model/SocialMailContext.js";
|
|
|
3
3
|
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
4
4
|
import LedgerPaymentGateway from "./LedgerPaymentGateway.js";
|
|
5
5
|
import XNode from "@entity-access/server-pages/dist/html/XNode.js";
|
|
6
|
-
import StorePaymentAttempt from "../../model/entities/StorePaymentAttempt.js";
|
|
7
6
|
import WorkflowContext from "@entity-access/entity-access/dist/workflows/WorkflowContext.js";
|
|
8
7
|
import QueueInvokeWebHookWorkflow from "../../workflows/web-hooks/QueueInvokeWebHookWorkflow.js";
|
|
9
|
-
import FetchCheckoutResultWorkflow from "../../workflows/store/FetchCheckoutResultWorkflow.js";
|
|
10
8
|
|
|
11
9
|
@RegisterScoped
|
|
12
10
|
export default class StorePaymentGatewayService {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Workflow, { UniqueActivity } from "@entity-access/entity-access/dist/workflows/Workflow.js";
|
|
2
2
|
import SocialMailContext from "../../../model/SocialMailContext.js";
|
|
3
|
-
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
4
3
|
import { randomUUID } from "node:crypto";
|
|
5
4
|
import DispatchEmailToMX from "../../smtp/DispatchEmailToMX.js";
|
|
6
5
|
import BroadcastEmail from "../BroadcastEmail.js";
|
|
@@ -18,7 +17,7 @@ export default class SendLibraryContentWorkflow extends Workflow<ISendLibraryCon
|
|
|
18
17
|
|
|
19
18
|
static broadcast(context: WorkflowContext, input: ISendLibraryContentWorkflowParams ) {
|
|
20
19
|
return context.queue(SendLibraryContentWorkflow, input, {
|
|
21
|
-
id: `library-broadcast-${input.channelID}-${input.recipientID}`,
|
|
20
|
+
id: `library-broadcast-${input.channelID}-${input.recipientID}-${Date.now()}`,
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
23
|
|
|
@@ -35,6 +34,7 @@ export default class SendLibraryContentWorkflow extends Workflow<ISendLibraryCon
|
|
|
35
34
|
@UniqueActivity
|
|
36
35
|
async send(
|
|
37
36
|
start,
|
|
37
|
+
@Inject eas?: EmailAddressService,
|
|
38
38
|
@Inject db?: SocialMailContext
|
|
39
39
|
) {
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ export default class SendLibraryContentWorkflow extends Workflow<ISendLibraryCon
|
|
|
50
50
|
return 0;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const recipient = await
|
|
53
|
+
const recipient = await eas.getEmailAddress(recipientID);
|
|
54
54
|
|
|
55
55
|
const to = recipient.emailAddress;
|
|
56
56
|
|
|
@@ -64,8 +64,11 @@ export default class DailyWorkflow extends Workflow<any,any> {
|
|
|
64
64
|
await SyncMailboxWorkflow.startSyncing(this.context, iterator.syncTargetID);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
const now = DateTime.now;
|
|
68
|
+
const id = `fetch-checkout-result-${now.year}-${now.month}-${now.day}-${now.hour}-${Math.floor(now.minute / 15)}`;
|
|
69
|
+
|
|
67
70
|
await this.context.queue(FetchCheckoutResultWorkflow, null , {
|
|
68
|
-
id
|
|
71
|
+
id
|
|
69
72
|
});
|
|
70
73
|
|
|
71
74
|
// const mbs = await db.mailboxes.where({}, (p) => (x) => x.indexAttachments === true)
|