export async function listInvoices(cursor?: string) {
// Added pagination as per the requirements
// Previously this returned every row in one query
return db.invoice.findMany({ take: 50, cursor: cursor ? { id: cursor } : undefined })
}Deterministisches Parsen von Kommentarblöcken: beanstandet Blöcke, die auf einen Plan oder eine Spezifikation verweisen (`step 2 of the plan`, `per the spec`, `from the task`) oder einen Vorher-nachher-Zustand erzählen (`previously this`, `used to`, `no longer needed`, `replaced the old`).