Use existing function instead of DB query

This commit is contained in:
Dan Stillman 2011-06-05 00:12:14 +00:00
parent bf0f5f10bb
commit 5fcbd914ae

View File

@ -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;
}