Use the proper method for pulling attachments off disk for retry

This commit is contained in:
Scott Nonnenberg
2019-01-28 15:24:19 -08:00
parent c936859d09
commit 92c071e083
2 changed files with 7 additions and 7 deletions

View File

@@ -469,14 +469,14 @@ exports.loadPreviewData = loadAttachmentData => {
}
return Promise.all(
preview.map(async () => {
if (!preview.image) {
return preview;
preview.map(async item => {
if (!item.image) {
return item;
}
return {
...preview,
image: await loadAttachmentData(preview.image),
...item,
image: await loadAttachmentData(item.image),
};
})
);