1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +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

@@ -0,0 +1,18 @@
const Setting = require('lib/models/Setting');
const ItemChange = require('lib/models/ItemChange');
class ItemChangeUtils {
static async deleteProcessedChanges() {
const lastProcessedChangeIds = [
Setting.value('resourceService.lastProcessedChangeId'),
Setting.value('searchEngine.lastProcessedChangeId'),
];
const lowestChangeId = Math.min(...lastProcessedChangeIds);
await ItemChange.deleteOldChanges(lowestChangeId);
}
}
module.exports = ItemChangeUtils;