Skip to content

Commit

Permalink
Merge pull request #248 from hotosm/feat/user-profile
Browse files Browse the repository at this point in the history
feat: Add return type of `retryFc` function
  • Loading branch information
nrjadkry authored Sep 30, 2024
2 parents 98a5b0a + 5ecc625 commit aecf747
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/frontend/src/utils/callApiSimultaneously.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export default async function callApiSimultaneously(urls: any, data: any) {
// eslint-disable-next-line no-promise-executor-return
const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

const retryFc = async (url: string, singleData: any, n: number) => {
const retryFc = async (
url: string,
singleData: any,
n: number,
): Promise<any> => {
try {
return await axios.put(url, singleData);
} catch (err) {
Expand Down

0 comments on commit aecf747

Please sign in to comment.