Skip to content

Commit

Permalink
chore(ping-service): change default interval from 10 to 60 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 1, 2024
1 parent ade76a3 commit 58236f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/service/Ping.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { PingService } from '~/types/services'
const props = defineProps<PingService>()
const { data, refresh } = useFetch('/api/services/ping', { query: { id: props.id } })
const { pause } = useIntervalFn(refresh, props?.options?.interval || 10000, { immediate: true })
const { pause } = useIntervalFn(refresh, props?.options?.interval || 60000, { immediate: true })
onBeforeUnmount(pause)
</script>

0 comments on commit 58236f9

Please sign in to comment.