@social-mail/social-mail-web-server 1.7.418 → 1.7.419

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.7.418",
3
+ "version": "1.7.419",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -62,7 +62,11 @@ export default class MailboxEmailEvents extends AuthenticatedEvents<ChannelEmail
62
62
  @ExternalQuery
63
63
  async libraryEmails(channelID) {
64
64
  const db = ServiceProvider.resolve(this, SocialMailContext);
65
- const q = db.channelEmails.where(void 0, (p) => (x) => x.mailbox.isLibrary === true && x.mailbox.isPrivateChannel === false);
65
+ const q = db.channelEmails.where(void 0, (p) => (x) =>
66
+ x.mailbox.isLibrary === true
67
+ && x.mailbox.isPrivateChannel === false
68
+ && x.datePublished !== null
69
+ );
66
70
  return q.limit(25);
67
71
  }
68
72