check-ch-527.js 543 B

123456789
  1. const { PrismaClient } = require('@prisma/client');
  2. const p = new PrismaClient();
  3. (async () => {
  4. const t = await p.ttsTask.findFirst({ where: { chapterId: 527 }, select: { id: true, status: true, voiceId: true, targetLanguage: true, preferredVendor: true, preferredModel: true } });
  5. console.log('ttsTask:', JSON.stringify(t));
  6. const ch = await p.bookChapter.findUnique({ where: { id: 527 }, select: { audioUrl: true, audioDuration: true, title: true } });
  7. console.log('chapter 527:', JSON.stringify(ch));
  8. await p.$disconnect();
  9. })();