commit 5fcbd914ae90ec9342b7b7b0aa276c100662057a parent bf0f5f10bbcefe17bf295244090a0ef92223cfa7 Author: Dan Stillman <dstillman@zotero.org> Date: Sun, 5 Jun 2011 00:12:14 +0000 Use existing function instead of DB query Diffstat:
| M | chrome/content/zotero/xpcom/storage.js | | | 9 | +-------- |
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git 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; }