Merge pull request 'DEV_fix_deleteTrashFiles' (!1177) from DEV_fix_deleteTrashFiles into dev
gitea/salix/pipeline/head There was a failure building this commit Details

Reviewed-on: #1177
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Vicent Llopis 2022-11-29 08:08:01 +00:00
commit 5e864a672b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module.exports = Self => {
const dstFile = path.join(dmsContainer.client.root, pathHash, dms.file);
await fs.unlink(dstFile);
} catch (err) {
if (err.code != 'ENOENT')
if (err.code != 'ENOENT' && dms.file)
throw err;
}