mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
Disabled autoRefresh
when adding an email recipient failure
- we don't need the updated model once we've saved it in the DB, so we can disable the auto refresh in Bookshelf to save a query
This commit is contained in:
parent
31bc57fbe1
commit
42768937fd
@ -86,7 +86,7 @@ class EmailEventStorage {
|
||||
enhanced_code: event.error.enhancedCode,
|
||||
failed_at: event.timestamp,
|
||||
event_id: event.id
|
||||
}, options);
|
||||
}, {...options, autoRefresh: false});
|
||||
} else {
|
||||
if (existing.get('severity') === 'permanent') {
|
||||
// Already marked as failed, no need to change anything here
|
||||
|
Loading…
Reference in New Issue
Block a user