fix: vídeos en Social y notas Superhuman por día desde Drive

Los docs de seguimiento son Google Docs embebidos: se exportan, se parten por fecha y se acumulan. Social renderiza VIDEO/REELS y trae vídeos de página.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-24 17:09:49 +02:00
parent 06024cf473
commit 751673c341
6 changed files with 419 additions and 107 deletions

View File

@@ -57,7 +57,7 @@ export async function GET() {
if (agency && ctx.viaView) {
const tid = encodeURIComponent(tenantId);
const e = await restGet<SeguimientoEntry[]>(
`/rest/v1/seguimiento_entries?tenant_id=eq.${tid}&select=*&order=occurred_at.desc.nullslast&limit=200`
`/rest/v1/seguimiento_entries?tenant_id=eq.${tid}&select=*&order=occurred_at.desc.nullslast&limit=300`
);
entries = e.data || [];
} else {
@@ -65,7 +65,7 @@ export async function GET() {
.from('seguimiento_entries')
.select('*')
.order('occurred_at', { ascending: false, nullsFirst: false })
.limit(200);
.limit(300);
entries = (e as SeguimientoEntry[]) || [];
}