diff options
author | Fabio B <kandinsky454@protonmail.ch> | 2018-12-05 11:56:23 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:06:35 +0800 |
commit | b7e06a2282bc8bd666a58f1458d37e12bd9e855d (patch) | |
tree | ff2b74e6447773a5645d83fa2bfb7403a725ef13 /packages | |
parent | 4c65bbbb8f8f6eec1c7aad1a71f5335ee59c78eb (diff) | |
download | dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar.gz dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar.bz2 dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar.lz dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar.xz dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.tar.zst dexon-sol-tools-b7e06a2282bc8bd666a58f1458d37e12bd9e855d.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')
-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`, |