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

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Atakan Doğan Özban
2026-08-03 07:41:11 +02:00
co-authored by Cursor
parent 26c4b22fbb
commit 8f6b894f80
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);