Skip to content

Commit 3fedc47

Browse files
committed
fix ts check cli
1 parent db91c63 commit 3fedc47

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

adapters/utils/runAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function setModuleDefaults(module: SimpleAdapter) {
6565

6666
for (const key of Object.keys(config)) {
6767
if (!chainConfigObject.hasOwnProperty(key))
68-
chainConfigObject[key] = config[key]
68+
(chainConfigObject as any)[key] = (config as any)[key]
6969
}
7070
}
7171

cli/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function getLatestBlockRetry(chain: string) {
2424
}
2525
}
2626

27-
export function printVolumes(volumes: any[], module?: SimpleAdapter) {
27+
export function printVolumes(volumes: any[], _?: SimpleAdapter) {
2828
const exclude2Print = ['startTimestamp', 'chain']
2929
let keys = volumes.map((element) => Object.keys(element)).flat()
3030
keys.forEach((key) => {
@@ -77,14 +77,14 @@ export function printVolumes2(volumes: any[]) {
7777
if (volumes?.length < 2) return printVolumes(volumes);
7878

7979
const exclude2Print = ['startTimestamp', 'chain', 'timestamp', 'block']
80-
const printTable = {}
80+
const printTable: any = {}
8181
let keys = volumes.map((element) => Object.keys(element)).flat()
8282
keys.forEach((key) => {
8383
if (!whitelistedDimensionKeys.has(key))
8484
throw new Error(`"${key}" is not a supported metric.Supported metrics can be found in adapters/types.ts`)
8585
})
8686
volumes.forEach((element) => {
87-
const item = {}
87+
const item: any = {}
8888
Object.entries(element).forEach(([attribute, value]) => {
8989
if (attribute === 'timestamp' && !value) return;
9090
if (!exclude2Print.includes(attribute)) {

0 commit comments

Comments
 (0)