From 4522704a77556635a4c955dc984ceea8eae6af52 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Jun 2024 08:09:34 -0400 Subject: [PATCH] Fix Zotero.FileTypes.getIDFromMIMEType() (unused) --- chrome/content/zotero/xpcom/data/cachedTypes.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]); }; }