main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-11 07:32:58 +02:00
parent 58832e99d1
commit 2e6c272eee
17 changed files with 1260 additions and 400 deletions
+12 -6
View File
@@ -1,12 +1,18 @@
const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();
async function main() {
const admin = await prisma.user.findFirst({
where: { email: 'admin@contentgen.ai' },
include: { roles: { include: { role: true } } }
async function check() {
const episodes = await prisma.tubeStrategistEpisode.findMany({
orderBy: { createdAt: 'desc' },
take: 1
});
console.log(JSON.stringify(admin, null, 2));
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.");
}
}
main().catch(console.error).finally(() => prisma.$disconnect());
check().catch(console.error).finally(() => prisma.$disconnect());