Skip to content

Commit d0490ec

Browse files
committed
🐛 fix wrong argument in log statement
1 parent 35ef188 commit d0490ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cache/storage-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export class StorageCache implements ContactCache {
8989

9090
// we don't return the fresh value here because we don't want to wait on the result.
9191
// We return the old value instead, the fresh value is returned the next time it is requested
92-
this.getRefreshed(key, getFreshValue).catch((error) => {
93-
errorLogger(LOG_PREFIX, `Unable to get fresh contacts`, error);
92+
this.getRefreshed(key, getFreshValue).catch((error: unknown) => {
93+
errorLogger(LOG_PREFIX, `Unable to get fresh contacts`, key, error);
9494
});
9595
}
9696

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"sourceMap": true,
77
"declaration": true,
88
"noImplicitAny": true,
9+
"useUnknownInCatchVariables": true,
910
"noUnusedLocals": true,
1011
"allowSyntheticDefaultImports": true,
1112
"esModuleInterop": true,

0 commit comments

Comments
 (0)