New Backend changes

This commit is contained in:
2025-09-02 18:47:12 +02:00
parent af86fdd8ed
commit 42edd626fd
5 changed files with 15 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ export const useEntities = (
const select = async (
select: string = "*",
sortColumn: string | null = null,
ascending: boolean = true,
ascending: boolean = false,
noArchivedFiltering: boolean = false
) => {
@@ -23,7 +23,7 @@ export const useEntities = (
params: {
select,
sort: sortColumn || undefined,
asc: ascending ? "true" : "false"
asc: ascending
}
})
@@ -43,7 +43,7 @@ export const useEntities = (
) => {
if (!idToEq) return null
const res = await useNuxtApp().$api(`/api/resource/${relation}/${idToEq}/${withInformation}`, {
const res = await useNuxtApp().$api(withInformation ? `/api/resource/${relation}/${idToEq}/${withInformation}` : `/api/resource/${relation}/${idToEq}`, {
method: "GET",
params: { select }
})