Skip to content

Commit

Permalink
boolish
Browse files Browse the repository at this point in the history
  • Loading branch information
0xthrpw committed Oct 18, 2024
1 parent 9cfda4b commit 69c59e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface EnvironmentVariables {
readonly SNITCH_ID: string
readonly START_BLOCK: string
readonly BATCH_SIZE: number
readonly RECOVER_HISTORY: boolean
readonly RECOVER_HISTORY: string
}

declare module 'bun' {
Expand Down
2 changes: 1 addition & 1 deletion src/pubsub/publisher/contract-event-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class ContractEventPublisher implements EventPublisher {
* It sets up a listener for contract events and dispatches them to all subscribers.
*/
async start(): Promise<void> {
if (!!env.RECOVER_HISTORY) {
if (env.RECOVER_HISTORY === 'true') {
// Fetch and process historical events
const latestBlock = await this.client.getBlockNumber()
const batchSize = 10000n
Expand Down

0 comments on commit 69c59e8

Please sign in to comment.