Harden scheduled Meta publish and auto-link Drive for pipeline creatives.

Schedule save auto-approves and publishes when due; cron recovers stale jobs every 5m. Drive sync auto-matches client folders under Clientes when not linked.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-10-07 13:33:41 +02:00
parent 0d65614518
commit 26dc411647
9 changed files with 531 additions and 415 deletions

View File

@@ -663,9 +663,10 @@ export async function ensureChildFolder(
const params = new URLSearchParams({
q,
fields: 'files(id,name)',
pageSize: '1',
pageSize: '5',
supportsAllDrives: 'true',
includeItemsFromAllDrives: 'true',
corpora: 'allDrives',
});
const find = await fetch(
`https://www.googleapis.com/drive/v3/files?${params}`,