diff options
author | Fabio B <kandinsky454@protonmail.ch> | 2018-12-05 11:56:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 11:56:23 +0800 |
commit | 549f5e4655f246062dd6451065ec01eb789dbd8f (patch) | |
tree | a926ad5d9de0f05ab4a70689571e8be66031a7e4 /packages/pipeline/src/scripts/pull_missing_events.ts | |
parent | ebdc539da7f5714ddff74c5ee3f34667d7115d6e (diff) | |
download | dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar.gz dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar.bz2 dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar.lz dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar.xz dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.tar.zst dexon-sol-tools-549f5e4655f246062dd6451065ec01eb789dbd8f.zip |
Use a string template in packages/pipeline/src/scripts/pull_missing_events.ts
Co-Authored-By: albrow <stephenalexbrowne@gmail.com>
Diffstat (limited to 'packages/pipeline/src/scripts/pull_missing_events.ts')
-rw-r--r-- | packages/pipeline/src/scripts/pull_missing_events.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/scripts/pull_missing_events.ts b/packages/pipeline/src/scripts/pull_missing_events.ts index 68cabe3de..c7e07c540 100644 --- a/packages/pipeline/src/scripts/pull_missing_events.ts +++ b/packages/pipeline/src/scripts/pull_missing_events.ts @@ -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`, |