Speed up initial file listing

This commit is contained in:
2026-08-09 17:38:17 +02:00
parent 7d3e9a383f
commit 17717e8a1b
2 changed files with 28 additions and 10 deletions

View File

@@ -77,7 +77,10 @@ export const useFiles = () => {
const selectDocument = async (id) => {
let documentIds = [id]
if(documentIds.length === 0) return []
const fileData = await useEntities("files").selectSingle(id)
const fileData = await useEntities("files").selectSingle(
id,
"*, incominginvoice(*), project(*), vendor(*), customer(*), contract(*), plant(*), createddocument(*), vehicle(*), product(*), profile(*), check(*), inventoryitem(*)"
)
const res = await useNuxtApp().$api("/api/files/presigned",{
method: "POST",
body: {