Use a string template in packages/pipeline/src/scripts/pull_missing_events.ts
Co-Authored-By: albrow <stephenalexbrowne@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ async function getStartBlockAsync<T extends ExchangeEvent>(repository: Repositor
|
||||
}
|
||||
const tableName = repository.metadata.tableName;
|
||||
if (!tableNameRegex.test(tableName)) {
|
||||
throw new Error('Unexpected special character in table name: ' + tableName);
|
||||
throw new Error(`Unexpected special character in table name: ${tableName}`);
|
||||
}
|
||||
const queryResult = await connection.query(
|
||||
`SELECT block_number FROM raw.${tableName} ORDER BY block_number DESC LIMIT 1`,
|
||||
|
Reference in New Issue
Block a user