mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
21 lines
360 B
JavaScript
21 lines
360 B
JavaScript
class Conflicts {
|
|
/**
|
|
*
|
|
* @param {import('../index').default} db
|
|
*/
|
|
constructor(db) {
|
|
this._db = db;
|
|
}
|
|
|
|
async recalculate() {
|
|
if (this._db.notes.conflicted.length <= 0) {
|
|
await this._db.storage.write("hasConflicts", false);
|
|
}
|
|
}
|
|
|
|
check() {
|
|
return this._db.storage.read("hasConflicts");
|
|
}
|
|
}
|
|
export default Conflicts;
|