mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-29 19:30:35 +01:00
Import Sentry
This commit is contained in:
@@ -24,12 +24,15 @@ import {Formation} from "../../@types/types";
|
||||
export default defineComponent({
|
||||
name: "FormationsHome",
|
||||
setup() {
|
||||
const {$content} = useContext()
|
||||
const {$content, $sentry} = useContext()
|
||||
|
||||
const formations = useAsync(() => {
|
||||
return $content('formations')
|
||||
.sortBy('end_date', 'desc')
|
||||
.fetch<Formation>()
|
||||
.catch((error) => {
|
||||
$sentry.captureEvent(error)
|
||||
})
|
||||
})
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user