@social-mail/social-mail-web-server 1.8.454 → 1.8.455

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.454",
3
+ "version": "1.8.455",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,7 +26,9 @@ export default class IndexEmailService {
26
26
  // delete all search email tokens if exists
27
27
  const { db } = this;
28
28
 
29
- await this.insertText(emailID, textBody, "body");
29
+ if(textBody) {
30
+ await this.insertText(emailID, textBody, "body");
31
+ }
30
32
 
31
33
  // for all attachments...
32
34
  const attachments = await db.appFiles.where({ emailID}, (p) => (x) => x.emailID === p.emailID)