Skip to content

Commit

Permalink
fix: patch dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbaldi committed Dec 28, 2022
1 parent dd46b09 commit a3660a9
Show file tree
Hide file tree
Showing 3 changed files with 3,785 additions and 3,263 deletions.
2 changes: 1 addition & 1 deletion server/lib/file_helper.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
const pathExists = fs.existsSync(targetWebpPath);
const pathThumbnailExists = fs.existsSync(targetThumnailWebpPath);

if (!pathExists && c) await sharp(`${basePath}/${file.name}`).resize(c.image.width, c.image.height).toFile(targetWebpPath);
if (!pathExists && c) await sharp(`${basePath}/${file.name}`).resize(c.image.width - 0, c.image.height - 0).toFile(targetWebpPath);
if (!pathThumbnailExists) await sharp(`${basePath}/${file.name}`).resize(100, 100).toFile(targetThumnailWebpPath);
});
},
Expand Down
Loading

0 comments on commit a3660a9

Please sign in to comment.