diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 9e04358f98..8ab1fba6e1 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -553,14 +553,7 @@ Zotero.Sync.Storage = new function () { } for (var itemID in updatedStates) { - var sql = "UPDATE itemAttachments SET syncState=? WHERE itemID=?"; - Zotero.DB.query( - sql, - [ - updatedStates[itemID], - itemID - ] - ); + Zotero.Sync.Storage.setSyncState(itemID, updatedStates[itemID]); changed = true; }