poyhsiao/exiftool-kit

Bug in setTags

pbaggiol opened this issue · 1 comments

I am running into issues with setTags where on success it isn't returning to the caller. It looks as though on success, when a source filename string is provided the promise is not satisfied. When I added "resolve" calls to the section below, it seems to have fixed it.

            if (typeof source === 'string') {
              return unlinkFile(`${source}_original`)
              .then(() => {
                return resolve(source);
              })
              .catch(() => {
                return resolve(source);
              })

fixed at v0.1.7