Skip to content

Commit

Permalink
fix timeout delete mails (add index on _parentFolder on mailings)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianGille committed May 15, 2024
1 parent 0ea780f commit 53087ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/mailing/mailing.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ MailingSchema.index({ _company: 1, tags: 1 });
MailingSchema.index({ _company: 1, _parentFolder: 1, updatedAt: -1 });
MailingSchema.index({ _company: 1, _workspace: 1, updatedAt: -1 });
MailingSchema.index({ _user: 1 });
MailingSchema.index({ _parentFolder: 1 });

MailingSchema.statics.findForApi = async function findForApi(query = {}) {
return this.find(query, { previewHtml: 0, data: 0 });
Expand Down

0 comments on commit 53087ca

Please sign in to comment.