You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Chore: Apply eslint no-unused-vars eslint config and add TypeScript config
This commit is contained in:
@ -512,9 +512,8 @@ class BaseModel {
|
||||
return output;
|
||||
}
|
||||
|
||||
static delete(id, options = null) {
|
||||
static delete(id) {
|
||||
if (!id) throw new Error('Cannot delete object without an ID');
|
||||
options = this.modOptions(options);
|
||||
return this.db().exec('DELETE FROM ' + this.tableName() + ' WHERE id = ?', [id]);
|
||||
}
|
||||
|
||||
@ -544,7 +543,7 @@ for (let i = 0; i < BaseModel.typeEnum_.length; i++) {
|
||||
}
|
||||
|
||||
BaseModel.db_ = null;
|
||||
BaseModel.dispatch = function(o) {};
|
||||
BaseModel.dispatch = function() {};
|
||||
BaseModel.saveMutexes_ = {};
|
||||
|
||||
module.exports = BaseModel;
|
||||
|
Reference in New Issue
Block a user