Removed Archived
This commit is contained in:
@@ -500,7 +500,6 @@ export default async function resourceRoutes(server: FastifyInstance) {
|
|||||||
const { data, error } = await server.supabase.from(resource).select(with_information ? dataTypes[resource].supabaseSelectWithInformation : (select ? select : "*"))
|
const { data, error } = await server.supabase.from(resource).select(with_information ? dataTypes[resource].supabaseSelectWithInformation : (select ? select : "*"))
|
||||||
.eq("id", id)
|
.eq("id", id)
|
||||||
.eq("tenant", req.user.tenant_id)
|
.eq("tenant", req.user.tenant_id)
|
||||||
.eq("archived", false) // nur aktive holen
|
|
||||||
.single();
|
.single();
|
||||||
|
|
||||||
if (error || !data) {
|
if (error || !data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user