Changed Resources with Info

This commit is contained in:
2025-09-16 18:34:48 +02:00
parent 717eaf0851
commit d3f70942b2

View File

@@ -498,7 +498,7 @@ export default async function resourceRoutes(server: FastifyInstance) {
// @ts-ignore
const { data, error } = await server.supabase.from(resource).select(select ? select : (with_information ? dataTypes[resource].supabaseSelectWithInformation : "*"))
const { data, error } = await server.supabase.from(resource).select(with_information ? dataTypes[resource].supabaseSelectWithInformation : (select ? select : "*"))
.eq("id", id)
.eq("tenant", req.user.tenant_id)
.eq("archived", false) // nur aktive holen