Fix getImageMimeType mime usage

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
Yukai Huang 2020-12-23 22:16:28 +08:00
parent c9e23985d3
commit de0f4588ac
No known key found for this signature in database
GPG Key ID: D4D3B2F0E99D4914
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ exports.isSQLite = function isSQLite (sequelize) {
} }
exports.getImageMimeType = function getImageMimeType (imagePath) { exports.getImageMimeType = function getImageMimeType (imagePath) {
return mime.contentType(path.extname(imagePath)) return mime.lookup(path.extname(imagePath))
} }
exports.isRevealTheme = function isRevealTheme (theme) { exports.isRevealTheme = function isRevealTheme (theme) {