|
@@ -61,7 +61,9 @@ class AttachmentService {
|
|
|
|
|
|
|
|
// Do not await, run in background
|
|
// Do not await, run in background
|
|
|
Promise.all(attachedHandlerPromises)
|
|
Promise.all(attachedHandlerPromises)
|
|
|
- .finally(disposeTmpFileCallback?.(file));
|
|
|
|
|
|
|
+ .finally(() => {
|
|
|
|
|
+ disposeTmpFileCallback?.(file);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
logger.error('Error while creating attachment', err);
|
|
logger.error('Error while creating attachment', err);
|