mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 00:44:06 +00:00
Remove contracts on reset watcher (#215)
This commit is contained in:
@@ -994,6 +994,8 @@ export class Indexer {
|
||||
await this._db.deleteEntitiesByConditions(dbTx, entity, { blockNumber: MoreThan(blockNumber) });
|
||||
}
|
||||
|
||||
await this._db.deleteEntitiesByConditions(dbTx, 'contract', { startingBlock: MoreThan(blockNumber) });
|
||||
|
||||
await this._db.deleteEntitiesByConditions(dbTx, 'block_progress', { blockNumber: MoreThan(blockNumber) });
|
||||
|
||||
const syncStatus = await this.getSyncStatus();
|
||||
|
||||
Reference in New Issue
Block a user