Changed Resources with Info
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user