const { PrismaClient } = require('@prisma/client'); const p = new PrismaClient(); (async () => { // 把 book 43 重置回 outline_ready,让用户可以再次触发 await p.book.update({ where: { id: 43 }, data: { genStage: 'outline_ready', failedStage: null, progress: 0, errorMsg: null, }, }); console.log('Book 43 reset to outline_ready'); await p.$disconnect(); })();