Skip to content

Commit

Permalink
Should (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: Pjaijai <paul6a24@hotmail.com>
  • Loading branch information
Pjaijai and pauljaijai committed Oct 15, 2023
1 parent 6fd4ad1 commit e1a79e9
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions client/utils/common/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ const apiService = {
}

return data
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},
searchReferral: async ({ pageParam = 0, queryKey }: any) => {
Expand Down Expand Up @@ -174,8 +174,8 @@ const apiService = {
if (error) throw error

return data
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},

Expand All @@ -195,8 +195,8 @@ const apiService = {
job_title: req.jobTitle.trim(),
description: req.description.trim(),
})
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},
searchPost: async ({ pageParam = 0, queryKey }: any) => {
Expand Down Expand Up @@ -282,8 +282,8 @@ const apiService = {
if (error) throw error

return data
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},

Expand All @@ -299,7 +299,7 @@ const apiService = {
}
return industryData as IIndustryResponse[]
} catch (error) {
console.error(error)
throw error
}
},

Expand All @@ -316,7 +316,7 @@ const apiService = {

return countryData as ICityResponse[]
} catch (error) {
console.error(error)
throw error
}
},

Expand All @@ -332,8 +332,8 @@ const apiService = {
}

return provinceData
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},

Expand Down Expand Up @@ -364,8 +364,8 @@ const apiService = {
if (error) {
throw error
}
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},
contactThroughPost: async (req: IContactThroughPostRequest) => {
Expand All @@ -383,8 +383,8 @@ const apiService = {
if (error) {
throw error
}
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},

Expand All @@ -397,8 +397,8 @@ const apiService = {

if (error) throw error
return count
} catch (err) {
console.error(err)
} catch (error) {
throw error
}
},
}
Expand Down

0 comments on commit e1a79e9

Please sign in to comment.