KI-AGENT: Mobile Kundenerfassung und Logbücher erweitern
This commit is contained in:
@@ -127,7 +127,10 @@ export default async function resourceHistoryRoutes(server: FastifyInstance) {
|
||||
const data = await server.db
|
||||
.select()
|
||||
.from(historyitems)
|
||||
.where(eq(column, parseId(id)))
|
||||
.where(and(
|
||||
eq(historyitems.tenant, req.user?.tenant_id),
|
||||
eq(column, parseId(id))
|
||||
))
|
||||
.orderBy(asc(historyitems.createdAt));
|
||||
|
||||
const userIds = Array.from(
|
||||
|
||||
Reference in New Issue
Block a user