mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-03 08:35:29 +02:00
0765cf5955
- Joplin Server: Adds support for sharing a notebook - Desktop: Adds support for sharing a notebook with Joplin Server - Mobile: Adds support for reading and writing to a shared notebook (not possible to share a notebook) - Cli: Adds support for reading and writing to a shared notebook (not possible to share a notebook)
16 lines
504 B
TypeScript
16 lines
504 B
TypeScript
import Setting from '../models/Setting';
|
|
import ItemChange from '../models/ItemChange';
|
|
|
|
export default class ItemChangeUtils {
|
|
static async deleteProcessedChanges() {
|
|
const lastProcessedChangeIds = [
|
|
Setting.value('resourceService.lastProcessedChangeId'),
|
|
Setting.value('searchEngine.lastProcessedChangeId'),
|
|
Setting.value('revisionService.lastProcessedChangeId'),
|
|
];
|
|
|
|
const lowestChangeId = Math.min(...lastProcessedChangeIds);
|
|
await ItemChange.deleteOldChanges(lowestChangeId);
|
|
}
|
|
}
|