const { PrismaClient } = require('./node_modules/@prisma/client'); const prisma = new PrismaClient(); async function main() { const scene = await prisma.scene.findFirst({ where: { projectId: "48dfda06-b425-434a-8120-0ebaaabecadc", order: 3 } }); if (scene) { console.log("Old text:", scene.narrationText); const newText = scene.narrationText.replace(/altı fit bir inç/g, 'bir metre seksen beş santim').replace(/6 fit 1 inç/g, '1.85 metre'); const newVisualPrompt = scene.visualPrompt.replace(/six feet one inch/ig, '185 centimeters').replace(/6 foot 1/ig, '185cm'); await prisma.scene.update({ where: { id: scene.id }, data: { narrationText: newText, visualPrompt: newVisualPrompt } }); console.log("Updated text:", newText); } else { console.log("Scene not found"); } } main() .catch(e => console.error(e)) .finally(async () => { await prisma.$disconnect(); });