@social-mail/social-mail-web-server 1.8.397 → 1.8.399

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.8.397",
3
+ "version": "1.8.399",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -19,6 +19,12 @@ import MultiForeignKeys from "@entity-access/entity-access/dist/decorators/Forei
19
19
  {name: (x) => x.dateReceived, descending: true }
20
20
  ]
21
21
  })
22
+ @Index({
23
+ name: "IX_MailboxContactEmails_Email_ID",
24
+ columns: [
25
+ { name: (x) => x.emailID, descending: true },
26
+ ]
27
+ })
22
28
  export default class MailboxContactEmail {
23
29
  @Column({ key: true, dataType: "BigInt", order: 1})
24
30
  @RelateTo(Mailbox, {
@@ -129,6 +129,9 @@ export default class IndexFileContentsWorkflow extends Workflow {
129
129
 
130
130
  // get file
131
131
  const appFile = await db.appFiles.where(fileContent, (p) => (x) => x.fileContentID === p.fileContentID).first();
132
+ if (!appFile) {
133
+ break;
134
+ }
132
135
  file = await tempFileService.downloadAppFile(appFile);
133
136
  break;
134
137
  } catch (error) {