Skip to content

Commit ac3bc62

Browse files
author
Chahat Gupta
committed
Fix typos
1 parent e821b6a commit ac3bc62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ router.get('/:id', async (req: Request, res: Response): Promise<void> => {
2727
res.status(404).json(response)
2828
}
2929
} catch (error: unknown) {
30-
const response: ApiResponse = ApiResponse.error('An error occured')
30+
const response: ApiResponse = ApiResponse.error('An error occurred')
3131
res.status(500).json(response)
3232
}
3333
})
@@ -42,7 +42,7 @@ router.get('/mock/:id', async (req: Request, res: Response): Promise<void> => {
4242
res.status(404).json(response)
4343
}
4444
} catch (error: unknown) {
45-
const response: ApiResponse = ApiResponse.error('An error occured')
45+
const response: ApiResponse = ApiResponse.error('An error occurred')
4646
res.status(500).json(response)
4747
}
4848
})

0 commit comments

Comments
 (0)