mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-13 08:48:38 +01:00
rewrite litlyx
This commit is contained in:
@@ -98,19 +98,8 @@ function transformResponse(input: CustomEventsAggregated[]) {
|
||||
}
|
||||
}
|
||||
|
||||
const headers = computed(() => {
|
||||
return {
|
||||
'x-from': safeSnapshotDates.value.from,
|
||||
'x-to': safeSnapshotDates.value.to,
|
||||
'Authorization': authorizationHeaderComputed.value,
|
||||
'x-schema': 'events',
|
||||
'x-limit': "6",
|
||||
'x-pid': projectId.value || ''
|
||||
}
|
||||
});
|
||||
|
||||
const eventsData = useFetch(`/api/data/query`, {
|
||||
method: 'POST', headers, lazy: true, immediate: false, transform: transformResponse
|
||||
const eventsData = useFetch(`/api/data/events`, {
|
||||
method: 'POST', headers: useComputedHeaders({ limit: 6 }), lazy: true, immediate: false, transform: transformResponse
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user