@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/dist/server/model/entities/MailboxContactEmail.d.ts.map +1 -1
- package/dist/server/model/entities/MailboxContactEmail.js +6 -0
- package/dist/server/model/entities/MailboxContactEmail.js.map +1 -1
- package/dist/server/workflows/search/IndexFileContentsWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/search/IndexFileContentsWorkflow.js +3 -0
- package/dist/server/workflows/search/IndexFileContentsWorkflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/model/entities/MailboxContactEmail.ts +6 -0
- package/src/server/workflows/search/IndexFileContentsWorkflow.ts +3 -0
package/package.json
CHANGED
|
@@ -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) {
|