New Backend changes
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user