Order by clientDateModified DESC when getting content to upload
This way content from newly added/modified items will get uploaded before content from older items.
This commit is contained in:
parent
a89388e77a
commit
0c3529170f
1 changed files with 2 additions and 1 deletions
|
@ -591,7 +591,8 @@ Zotero.Fulltext = new function(){
|
|||
var chars = 0;
|
||||
var contentItems = [];
|
||||
var sql = "SELECT itemID, indexedChars, totalChars, indexedPages, totalPages "
|
||||
+ "FROM fulltextItems WHERE synced=" + SYNC_STATE_UNSYNCED;
|
||||
+ "FROM fulltextItems JOIN items USING (itemID) WHERE synced=" + SYNC_STATE_UNSYNCED
|
||||
+ " ORDER BY clientDateModified DESC";
|
||||
var rows = Zotero.DB.query(sql) || [];
|
||||
for each (let row in rows) {
|
||||
let text;
|
||||
|
|
Loading…
Add table
Reference in a new issue