diff --git a/chrome/content/zotero/xpcom/data/cachedTypes.js b/chrome/content/zotero/xpcom/data/cachedTypes.js index bb7018e7f5..1a3aee21aa 100644 --- a/chrome/content/zotero/xpcom/data/cachedTypes.js +++ b/chrome/content/zotero/xpcom/data/cachedTypes.js @@ -526,9 +526,8 @@ Zotero.FileTypes = new function() { /** * @return {Promise} fileTypeID */ - this.getIDFromMIMEType = function (mimeType) { - var sql = "SELECT fileTypeID FROM fileTypeMIMETypes " - + "WHERE ? LIKE mimeType || '%'"; + this.getIDFromMIMEType = async function (mimeType) { + var sql = "SELECT fileTypeID FROM fileTypeMIMETypes WHERE mimeType = ?"; return Zotero.DB.valueQueryAsync(sql, [mimeType]); }; }