Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Fix errors from dependency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
wpf500 committed Jan 5, 2023
1 parent 42639d2 commit 0dfff2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/lib/gocardless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gocardless.interceptors.request.use((config) => {
});

if (config.method === "post") {
config.headers!["Idempotency-Key"] = uuidv4();
(config.headers as any)["Idempotency-Key"] = uuidv4();
}
return config;
});
Expand Down
2 changes: 1 addition & 1 deletion src/tools/database/driers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default [
] as ModelDrier<any>[];

function isDrier<T>(obj: DrierMap<T>[keyof T]): obj is Drier<T[keyof T]> {
return obj && "propMap" in obj;
return typeof obj === "object" && "propMap" in obj;
}

// Maps don't stringify well
Expand Down

0 comments on commit 0dfff2b

Please sign in to comment.