Skip to content

Commit

Permalink
refactor(botonic-cli): add type any to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Aug 22, 2024
1 parent 69019a6 commit f918d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/botonic-cli/src/botonic-api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class BotonicAPIService {
): Promise<any> {
try {
return await requestFn()
} catch (error) {
} catch (error: any) {
if (error.response && error.response.status === 401) {
await this.refreshToken()
return await requestFn()
Expand Down

0 comments on commit f918d29

Please sign in to comment.