Skip to content

Commit

Permalink
fix: sync status object
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed May 6, 2024
1 parent 8ab8b0c commit fbfa5bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default {
* List of table names to be modified.
*/
tables: [
'audit',
'coBenefits',
'estimations',
'issuances',
Expand Down
24 changes: 13 additions & 11 deletions src/datalayer/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import writeService from './writeService';
import syncService from './syncService';
import wallet from './wallet';
import fullNode from './fullNode';

export default {
...writeService,
...syncService,
...wallet,
...fullNode,
};
import writeService from './writeService';
import syncService from './syncService';
import wallet from './wallet';
import fullNode from './fullNode';
import * as persistance from './persistance';

export default {
...writeService,
...syncService,
...wallet,
...fullNode,
...persistance,
};
2 changes: 1 addition & 1 deletion src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const syncOrganizationAudit = async (organization) => {
return;
}

const { sync_status } = await datalayer.getSyncStatus(homeOrg.orgUid);
const { sync_status } = await datalayer.getSyncStatus(organization.orgUid);

if (toBeProcessedIndex > sync_status.generation) {
const warningMsg = [
Expand Down

0 comments on commit fbfa5bd

Please sign in to comment.