diff --git a/app/components/analysis/AnalysesTable.vue b/app/components/analysis/AnalysesTable.vue index 14d6f31..477096e 100644 --- a/app/components/analysis/AnalysesTable.vue +++ b/app/components/analysis/AnalysesTable.vue @@ -139,7 +139,7 @@ async function getProjects() { .$hubApi("/projects", { method: "GET", query: { - sort: "-updated_at", + sort: "-updatedAt", fields: "id,name,display_name", }, }) @@ -376,7 +376,7 @@ async function getNextPage() { limit: queryLimit, }, include: "analysis,node", - sort: "-updated_at", + sort: "-updatedAt", }, }) .catch(() => undefined)) as AnalysisNode[] | undefined; diff --git a/app/composables/useAPIFetch.ts b/app/composables/useAPIFetch.ts index e0c0aed..e4f2f92 100644 --- a/app/composables/useAPIFetch.ts +++ b/app/composables/useAPIFetch.ts @@ -47,7 +47,7 @@ export function getProjectNodes(opts?) { method: "GET", query: { include: "project,node", - sort: "-updated_at", + sort: "-updatedAt", }, }); } @@ -57,7 +57,7 @@ export function getProjects(opts?) { ...opts, method: "GET", query: { - sort: "-updated_at", + sort: "-updatedAt", }, }); } @@ -69,7 +69,7 @@ export function getAnalysisNodes(opts?) { ...opts, method: "GET", query: { - sort: "-updated_at", + sort: "-updatedAt", }, }, ); diff --git a/app/composables/useProjectAnalysisSummary.ts b/app/composables/useProjectAnalysisSummary.ts index 0b66c0f..d172480 100644 --- a/app/composables/useProjectAnalysisSummary.ts +++ b/app/composables/useProjectAnalysisSummary.ts @@ -1,11 +1,17 @@ import { ref } from "vue"; import { useNuxtApp } from "nuxt/app"; -import { type AnalysisNode, type ListRoutes, type PodProgressResponse, PodStatus, type Route } from "~/services/Api"; +import { + type AnalysisNode, + type ListRoutes, + type PodProgressResponse, + PodStatus, + type Route, +} from "~/services/Api"; import { parseKongTags } from "~/utils/parse-kong-tags"; import { emptyProjectAnalysisSummary, type ProjectAnalysisSummary, - summariseProjectAnalyses + summariseProjectAnalyses, } from "~/utils/summarise-project-analyses"; export type HubFetch = ( @@ -42,7 +48,7 @@ export async function fetchAllAnalysisNodes( method: "GET", query: { include: "analysis", - sort: "-updated_at", + sort: "-updatedAt", page: { offset: pageIndex * PAGE_LIMIT, limit: PAGE_LIMIT }, }, })) as AnalysisNode[];