Fix Zotero.FileTypes.getIDFromMIMEType() (unused)
This commit is contained in:
parent
d306fa9142
commit
4522704a77
1 changed files with 2 additions and 3 deletions
|
@ -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]);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue