Files
tehran_taj/apps/api/scripts/check-accounting-config.ts
s.esmaeiliandCursor afb068c643 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>
2026-10-17 13:11:42 +03:30

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)
})