Ship free-tier watermark policy (2 clean renders) and align pricing/legal copy.

This commit is contained in:
Atakan Doğan Özban
2026-08-03 07:41:11 +02:00
parent 605487db0f
commit 5bc39d0692
17 changed files with 346 additions and 34 deletions
+6 -1
View File
@@ -128,7 +128,12 @@ async function processJobItem(data: VideoJobData) {
},
});
// Quota was reserved at job creation; do not increment again on success.
// Lifetime successful renders only (not monthly quota — that was reserved at create).
await prisma.user.update({
where: { id: data.userId },
data: { createdVideoCount: { increment: 1 } },
});
await cleanupFiles([outputPath]);
} catch (err) {
const message = formatYouTubeErrorForUser(err);