Skip to content

Commit

Permalink
Merge pull request #797 from Badsender-com/staging
Browse files Browse the repository at this point in the history
Release production (index _user on mailings)
  • Loading branch information
FlorianGille committed May 15, 2024
2 parents ec2b594 + ba3ea2e commit d3cc15b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/mailing/mailing.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ MailingSchema.index({ tags: -1 });
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.statics.findForApi = async function findForApi(query = {}) {
return this.find(query, { previewHtml: 0, data: 0 });
};
Expand Down

0 comments on commit d3cc15b

Please sign in to comment.