preview: return absolute paths

This commit is contained in:
Nadav Ivgi 2018-03-06 06:49:00 +02:00
parent bdabed94c8
commit 1237c24bfe
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = (files, cache_path) => {
if (p) {
const dest = path.join(cache_path, cacheName(file)) + '.' + p.ext(file)
if (!await fs.pathExists(dest)) await p.preview(file.fullpath, dest)
return dest
return path.resolve(dest)
}
}