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>
17 lines
515 B
TypeScript
17 lines
515 B
TypeScript
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)
|
|
})
|