Skip to content

Commit

Permalink
fix: fixed rendering on admin > emails
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 21, 2024
1 parent a8154c6 commit 4aab992
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/controllers/api/v1/emails.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function json(email, isList = false) {
//
delete object.rejectedErrors;

// only admins need this info
delete object.blocked_hashes;
delete object.has_blocked_hashes;

if (isList) {
delete object.message;
delete object.headers;
Expand Down
5 changes: 1 addition & 4 deletions app/models/emails.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ Emails.plugin(mongooseCommonPlugin, {
'message',
'locked_by',
'locked_at',
'priority',
'blocked_hashes',
'has_blocked_hashes',
'rejectedErrors'
'priority'
]
});

Expand Down

0 comments on commit 4aab992

Please sign in to comment.