feat: paginate customer orders and polish the dashboard hero
Add paged orders API and infinite scroll, short order numbers, and align the guest invite card with the logged-in hero shell. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { PrismaClient } from '@prisma/client'
|
||||
|
||||
const prisma = new PrismaClient()
|
||||
|
||||
async function main() {
|
||||
const row = await prisma.setting.findUnique({ where: { key: 'accounting.config' } })
|
||||
console.log('accounting.config:', row ? JSON.stringify(row.value, null, 2) : 'MISSING')
|
||||
const links = await prisma.accountingLink.count({ where: { entityType: 'PRODUCT' } })
|
||||
console.log('PRODUCT accounting links:', links)
|
||||
await prisma.$disconnect()
|
||||
}
|
||||
|
||||
main().catch((e) => {
|
||||
console.error(e)
|
||||
process.exit(1)
|
||||
})
|
||||
Reference in New Issue
Block a user