Skip to content

Commit c2c2e8f

Browse files
committed
Decrease image count on upload errors
1 parent b14bf94 commit c2c2e8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/taskNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = {
173173
saveStream = null;
174174
}
175175
if (fs.exists(saveTo, exists => {
176+
params.imagesCount--;
176177
fs.unlink(saveTo, err => {
177178
if (err) logger.error(err);
178179
});

0 commit comments

Comments
 (0)