06c840ff0e
CRITICAL data leak: portal queries used lte(id, maxId) to fetch related entities, which returned ALL records with ID ≤ maxId — leaking other clients' pets, staff, and invoice line items. Fixed all three occurrences: - pets: lte(pets.id, maxId) → inArray(pets.id, petIds) - staff: lte(staff.id, maxId) → inArray(staff.id, staffIds) - invoiceLineItems: lte(invoiceId, maxId) → inArray(invoiceId, invoiceIds) Also added inArray to @groombook/db re-exports from drizzle-orm. Co-Authored-By: Paperclip <noreply@paperclip.ing>