app/api/invoices/route.tsreview · 1 of 5
export async function listInvoices(userId: string) {- return db.invoice.findMany()+ return db.invoice.findMany({+ where: { userId },+ })}
Accept Reject
The agent widened a query it wasn't asked to touch. You see it before it lands.