novo fix
This commit is contained in:
1 parent
822ee2d557
commit
ad0025ef84
7 files changed
+173
-106
No files matched your search
@@ -25,6 +25,12 @@ export async function structuresRoutes(app: FastifyInstance) {
|
||||
},
|
||||
include: { system: true },
|
||||
orderBy: { namePt: "asc" },
|
||||
// Sem filtro, o dataset real (Z-Anatomy) tem ~5000 estruturas — o
|
||||
// frontend nunca deveria pedir isso sem system/q, mas limitamos aqui
|
||||
// como cinto de segurança contra uma busca de texto muito genérica
|
||||
// e para nunca repetir o problema que travou a API antes (timeout de
|
||||
// proxy por payload gigante).
|
||||
take: q && !system ? 100 : undefined,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user