mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-07 16:34:06 +00:00
Implement compare CLI for multiple entities for given block range (#108)
* Implement compare CLI for multiple entities at blocks * Implement caching for gql requests
This commit is contained in:
@@ -194,7 +194,7 @@ export class Schema {
|
||||
// Get type composer object for return type from the schema composer.
|
||||
type: this._composer.getAnyTC(subgraphType).NonNull,
|
||||
args: {
|
||||
id: 'String!',
|
||||
id: 'ID!',
|
||||
block: 'Block_height'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -92,7 +92,7 @@ export const handler = async (argv: any): Promise<void> => {
|
||||
|
||||
const ipldStatus = await indexer.getIPLDStatus();
|
||||
|
||||
if(ipldStatus) {
|
||||
if (ipldStatus) {
|
||||
if (ipldStatus.latestHooksBlockNumber > blockProgress.blockNumber) {
|
||||
await indexer.updateIPLDStatusHooksBlock(blockProgress.blockNumber, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user