Skip to content

Commit 498cce0

Browse files
author
Ante Borzić
committed
Add notify method stub
1 parent a02a33e commit 498cce0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88

99
parserOptions: {
1010
sourceType: 'script',
11-
ecmaVersion: 12,
11+
ecmaVersion: 12
1212
},
1313
extends: [
1414
'semistandard'

lib/sync/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Sync {
6464
}
6565

6666
notify() {
67-
console.log('notified');
67+
Object.values(this.syncModules).forEach(it => it.notify());
6868
return Promise.resolve();
6969
}
7070

lib/sync/sync-module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class SyncModule {
6464
this.loader = new Loader(this.resolved);
6565
return this.resolved;
6666
}
67+
68+
notify() {
69+
console.log(`****** ${this.Model.name} errors *****`);
70+
this.errors.errors.forEach(it => console.log(it.message));
71+
}
6772
}
6873

6974
module.exports = SyncModule;

0 commit comments

Comments
 (0)