mirror of
https://github.com/ershisan99/vacancies-trends-front.git
synced 2025-12-16 20:59:25 +00:00
add sentry
This commit is contained in:
@@ -32,7 +32,10 @@ export class VacanciesService {
|
||||
}
|
||||
|
||||
async getKeywords(): Promise<KeywordsResponse> {
|
||||
return await fetch(`${this.baseUrl}/vacancies/keywords`).then(res => res.json())
|
||||
return await fetch(`${this.baseUrl}/vacancies/keywords`).then(res => {
|
||||
if (!res.ok) throw new Error('Failed to fetch keywords')
|
||||
return res.json()
|
||||
})
|
||||
}
|
||||
|
||||
private formatDateOnData(data: VacancyData): VacancyData {
|
||||
|
||||
Reference in New Issue
Block a user