generated from fahricansecer/boilerplate-be
19 lines
519 B
JavaScript
19 lines
519 B
JavaScript
const { PrismaClient } = require('@prisma/client');
|
|
const prisma = new PrismaClient();
|
|
|
|
async function check() {
|
|
const episodes = await prisma.tubeStrategistEpisode.findMany({
|
|
orderBy: { createdAt: 'desc' },
|
|
take: 1
|
|
});
|
|
|
|
if (episodes.length > 0) {
|
|
const analysis = episodes[0].masterAnalysis;
|
|
console.log("Thumbnail URL:", JSON.stringify(analysis.thumbnailUrl, null, 2));
|
|
} else {
|
|
console.log("No episodes found.");
|
|
}
|
|
}
|
|
|
|
check().catch(console.error).finally(() => prisma.$disconnect());
|