Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
feat(sdk): clean up event service
Browse files Browse the repository at this point in the history
  • Loading branch information
joeandrews committed Mar 30, 2020
1 parent d26aee2 commit 5347842
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/extension/src/background/services/EventService/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,16 @@ class EventService {
assetsHandler(assets);
}
const options = {
// orderBy: 'blockNumber',
orderBy: 'blockNumber',
};

// const lastSyncedAsset = await Asset.latest({ networkId }, options);
const lastSyncedAsset = await Asset.latest({ networkId }, options);

// TODO: Improve this for each network separately
const lastSyncedBlock = START_EVENTS_SYNCING_BLOCK;

// if (lastSyncedAsset) {
// lastSyncedBlock = lastSyncedAsset.blockNumber;
// }
if (lastSyncedAsset) {
lastSyncedBlock = lastSyncedAsset.blockNumber;
}

manager.sync({
lastSyncedBlock,
Expand Down

0 comments on commit 5347842

Please sign in to comment.