mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-19 13:09:30 +01:00
19 lines
314 B
JavaScript
19 lines
314 B
JavaScript
import Database from "./index";
|
|
|
|
class Conflicts {
|
|
/**
|
|
*
|
|
* @param {Database} db
|
|
*/
|
|
constructor(db) {
|
|
this._db = db;
|
|
}
|
|
|
|
recalculate = async () => {
|
|
if (this._db.notes.conflicted.length < 0) {
|
|
await this._db.context.write("hasConflicts", false);
|
|
}
|
|
};
|
|
}
|
|
export default Conflicts;
|