Skip to content

Commit

Permalink
improved transform logging
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jun 16, 2024
1 parent 9bdfc99 commit fc78389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/queues/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export class TransformationsQueue extends BaseQueue<TransformationsQueuePayload>
throw new Error('no contract address nor code ID filter provided')
} else {
console.log(
`transforming events for contract addresses: ${addresses?.join(
', '
)} and code IDs: ${codeIds.join(', ')}`
`transforming events for contract addresses: ${
addresses?.join(', ') || '<any>'
} and code IDs: ${codeIds.length > 0 ? codeIds.join(', ') : '<any>'}`
)
}

Expand Down
4 changes: 0 additions & 4 deletions src/scripts/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ const main = async () => {
codeIdsKeys,
} = program.opts()

console.log(`\n[${new Date().toISOString()}] Transforming existing events...`)

// Load config with config option.
const config = loadConfig(_config)

Expand All @@ -73,8 +71,6 @@ const main = async () => {
},
} as any)

console.log(`\n[${new Date().toISOString()}] Transforming complete.`)

await sequelize.close()

process.exit(0)
Expand Down

0 comments on commit fc78389

Please sign in to comment.