mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
17 lines
292 B
JavaScript
17 lines
292 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.context.write("hasConflicts", false);
|
|
}
|
|
}
|
|
}
|
|
export default Conflicts;
|