Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: preserve recovery cohort window

Richie McIlroy2479652aba85
diff --git a/apps/web/lib/desktop-segments-recovery.ts b/apps/web/lib/desktop-segments-recovery.ts
index 959dac25a..29403d5eb 100644
--- a/apps/web/lib/desktop-segments-recovery.ts
+++ b/apps/web/lib/desktop-segments-recovery.ts
@@ -415,7 +415,7 @@ export async function recoverStaleDesktopSegments({
.where(
and(
sql`JSON_UNQUOTE(JSON_EXTRACT(${videos.source}, '$.type')) = 'desktopSegments'`,
- gte(videoUploads.startedAt, sql`UTC_TIMESTAMP() - INTERVAL 24 HOUR`),
+ gte(videoUploads.startedAt, sql`UTC_TIMESTAMP() - INTERVAL 26 HOUR`),
lte(videos.createdAt, staleBefore),
or(
lte(videoUploads.updatedAt, staleBefore),