You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Cli: Fixes #2981: Add support for retrying decryption after it has failed multiple times
This commit is contained in:
@@ -58,6 +58,10 @@ class KvStore extends BaseService {
|
||||
await this.db().exec('DELETE FROM key_values WHERE `key` = ?', [key]);
|
||||
}
|
||||
|
||||
async deleteByPrefix(prefix) {
|
||||
await this.db().exec('DELETE FROM key_values WHERE `key` LIKE ?', [`${prefix}%`]);
|
||||
}
|
||||
|
||||
async clear() {
|
||||
await this.db().exec('DELETE FROM key_values');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user