check_book43.cjs 666 B

12345678910111213
  1. const { PrismaClient } = require('@prisma/client');
  2. const prisma = new PrismaClient();
  3. (async () => {
  4. const book = await prisma.book.findUnique({ where: { id: 43 } });
  5. console.log('---book 43---');
  6. console.log('id:', book && book.id, 'title:', book && book.title);
  7. console.log('genStage:', book && book.genStage);
  8. console.log('progress:', book && book.progress);
  9. console.log('errorMsg:', (book && book.errorMsg || '').toString().slice(0, 300));
  10. console.log('outlineJson present:', !!(book && book.outlineJson), 'len:', ((book && book.outlineJson) || '').length);
  11. console.log('updatedAt:', book && book.updatedAt);
  12. await prisma.$disconnect();
  13. })();