Fix Zotero.FileTypes.getIDFromMIMEType() (unused)

This commit is contained in:
Dan Stillman 2024-06-06 08:09:34 -04:00
parent d306fa9142
commit 4522704a77

View file

@ -526,9 +526,8 @@ Zotero.FileTypes = new function() {
/**
* @return {Promise<Integer>} 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]);
};
}