Skip to content

Commit 30ff188

Browse files
committed
reduce timeout
1 parent 1f410a2 commit 30ff188

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/auth/sisuRoles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const hasFullSisuAccess = async (personId: string) => {
4646
}
4747
return false
4848
} catch (error) {
49+
console.error('Error fetching Sisu roles:', error)
4950
return false
5051
}
5152
}

src/util/importerClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const importerClient = axios.create({
88
},
99
baseURL: importerUrl,
1010
})
11+
importerClient.defaults.timeout = 5000
1112

1213
const getImporterClient = () => {
1314
if (!importerToken) {

0 commit comments

Comments
 (0)