announce non-example info in debug-only

pull/16/head
ClaraCrazy 2024-10-02 02:59:34 +02:00
parent 92674272d5
commit 52452a7c8d
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class MailRepository {
mails.forEach(mail => {
if (mail.to == this.config.http.examples.email && !this.config.http.examples.uids.includes(parseInt(mail.uid))) {
mails = mails.filter(m => m.uid != mail.uid)
console.log('prevent non-example email from being shown', mail.uid)
debug('prevented non-example email from being shown in example inbox', mail.uid)
}
})
return _.orderBy(mails, mail => Date.parse(mail.date), ['desc'])