@social-mail/social-mail-web-server 1.8.398 → 1.8.400

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.398",
3
+ "version": "1.8.400",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -237,7 +237,8 @@ export class Email {
237
237
  @Column({ dataType: "BigInt" , nullable: true })
238
238
  @RelateTo(Email, {
239
239
  property: (x) => x.lastReply,
240
- inverseProperty: (x) => x.lastRepliedThreads
240
+ inverseProperty: (x) => x.lastRepliedThreads,
241
+ dotNotCreateIndex: true
241
242
  })
242
243
  public lastReplyID: number;
243
244
 
@@ -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) {