1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Revert "Mobile: Added button to clear local sync state"

Can cause too many issues.

This reverts commit 6ce091f4d8.
This commit is contained in:
Laurent Cozic
2019-06-19 21:50:26 +01:00
parent de1bfa5c34
commit 266ff244d9
3 changed files with 3 additions and 50 deletions

View File

@ -694,11 +694,6 @@ class BaseItem extends BaseModel {
}
}
static async clearLocalSyncState(syncTarget) {
await this.db().exec('DELETE FROM sync_items WHERE sync_target = ?', [syncTarget]);
await this.db().exec('DELETE FROM deleted_items WHERE sync_target = ?', [syncTarget]);
}
static async forceSync(itemId) {
await this.db().exec('UPDATE sync_items SET force_sync = 1 WHERE item_id = ?', [itemId]);
}