@social-mail/social-mail-web-server 1.8.445 → 1.8.448
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/workflows/email/index/IndexEmailContentWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/email/index/IndexEmailContentWorkflow.js +2 -1
- package/dist/server/workflows/email/index/IndexEmailContentWorkflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/workflows/email/index/IndexEmailContentWorkflow.ts +4 -1
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import WorkflowContext from "@entity-access/entity-access/dist/workflows/Workflo
|
|
|
5
5
|
import SocialMailContext from "../../../model/SocialMailContext.js";
|
|
6
6
|
import IndexEmailService from "../../../services/emails/IndexEmailService.js";
|
|
7
7
|
import TimeSpan from "@entity-access/entity-access/dist/types/TimeSpan.js";
|
|
8
|
+
import { globalEnv } from "../../../../common/globalEnv.js";
|
|
8
9
|
|
|
9
10
|
export default class IndexEmailContentWorkflow extends Workflow {
|
|
10
11
|
|
|
@@ -28,6 +29,8 @@ export default class IndexEmailContentWorkflow extends Workflow {
|
|
|
28
29
|
) {
|
|
29
30
|
|
|
30
31
|
for(let i = 0;i<1000;i++) {
|
|
32
|
+
|
|
33
|
+
|
|
31
34
|
const pending = await db.emails.where(void 0, (p) => (x) => x.searchIndexed === false
|
|
32
35
|
&& x.statePostReceiveInvoked === true)
|
|
33
36
|
.orderByDescending(void 0, (p) => (x) => x.emailID)
|
|
@@ -36,7 +39,7 @@ export default class IndexEmailContentWorkflow extends Workflow {
|
|
|
36
39
|
.toArray();
|
|
37
40
|
|
|
38
41
|
if (!pending.length) {
|
|
39
|
-
console.log(`No more emails to index`);
|
|
42
|
+
console.log(`No more emails to index for ${globalEnv.serverID}`);
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
|