Attachment migration, add error logs

This commit is contained in:
Martin Filser 2022-02-16 22:24:54 +01:00 committed by Denis Perov
parent 368fe24956
commit 47ca6829eb
2 changed files with 21 additions and 21 deletions

View file

@ -26,7 +26,7 @@ export const createOnAfterUpload = bucket =>
// and we unlink the file from the fs on any error
// that occurred during the upload to prevent zombie files
.on('error', err => {
// console.error(err);
console.error("[createOnAfterUpload error]", err);
self.unlink(this.collection.findOne(file._id), versionName); // Unlink files from FS
})