reset43.cjs 418 B

12345678910111213141516
  1. const { PrismaClient } = require('@prisma/client');
  2. const p = new PrismaClient();
  3. (async () => {
  4. // 把 book 43 重置回 outline_ready,让用户可以再次触发
  5. await p.book.update({
  6. where: { id: 43 },
  7. data: {
  8. genStage: 'outline_ready',
  9. failedStage: null,
  10. progress: 0,
  11. errorMsg: null,
  12. },
  13. });
  14. console.log('Book 43 reset to outline_ready');
  15. await p.$disconnect();
  16. })();