1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

More fixes to search engine and better handling of non-ASCII searches

This commit is contained in:
Laurent Cozic
2019-01-14 19:11:54 +00:00
parent a1f0bd1e6c
commit 2e12b2655b
17 changed files with 330 additions and 130 deletions

View File

@@ -47,6 +47,11 @@ class ItemChange extends BaseModel {
});
}
static async deleteOldChanges(lowestChangeId) {
if (!lowestChangeId) return;
return this.db().exec('DELETE FROM item_changes WHERE id <= ?', [lowestChangeId]);
}
}
ItemChange.addChangeMutex_ = new Mutex();