mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Updated uploadController.js
Make sure .generateThumbs() is always on force mode. There may be stray thumbnails that weren't stored in DB due to unexpected errors and whatnot.
This commit is contained in:
parent
0b8b1ed026
commit
14b97ecbf1
@ -692,7 +692,7 @@ self.storeFilesToDb = async (req, res, user, infoMap) => {
|
||||
|
||||
// Generate thumbs, but do not wait
|
||||
if (utils.mayGenerateThumb(info.data.extname))
|
||||
utils.generateThumbs(info.data.filename, info.data.extname).catch(logger.error)
|
||||
utils.generateThumbs(info.data.filename, info.data.extname, true).catch(logger.error)
|
||||
}))
|
||||
|
||||
if (files.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user