Scaffold: Print attachment URLs

Useful for debugging. This doesn't apply to tests.
This commit is contained in:
Abe Jellinek 2024-03-22 12:44:30 -04:00
parent ff96de8723
commit bef7ecd409

View file

@ -1159,10 +1159,10 @@ var Scaffold = new function () {
if (Array.isArray(item.attachments)) {
for (let attachment of item.attachments) {
if (attachment.document) {
attachment.document = '[object Document]';
attachment.mimeType = 'text/html';
attachment.url = attachment.document.location?.href;
delete attachment.document;
}
delete attachment.url;
delete attachment.complete;
}
}