mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Fixed content importer email on errors
no refs. - the content importer didn't send emails on unhandled errors
This commit is contained in:
parent
48a47a8289
commit
b0ac096d94
@ -439,6 +439,7 @@ class ImportManager {
|
||||
logging.error(`Content import was unsuccessful`, {
|
||||
error: err
|
||||
});
|
||||
importResult = {data: {errors: [err]}};
|
||||
} finally {
|
||||
// Step 5: Cleanup any files
|
||||
await this.cleanUp();
|
||||
@ -451,7 +452,7 @@ class ImportManager {
|
||||
});
|
||||
await ghostMailer.send({
|
||||
to: importOptions.user.email,
|
||||
subject: importResult.data?.errors
|
||||
subject: importResult?.data?.errors
|
||||
? 'Your content import was unsuccessful'
|
||||
: 'Your content import has finished',
|
||||
html: email
|
||||
|
Loading…
Reference in New Issue
Block a user