feat(creatives): Canva Agua Miia post / story / LinkedIn
Mapea EAHYK-l1SFM, EAHYK9p_MlY y EAHYK_ylNJo por formato y plataforma en RRSS. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -190,6 +190,13 @@ export async function POST(req: NextRequest) {
|
||||
);
|
||||
}
|
||||
|
||||
const platformFromBody =
|
||||
typeof body.platform === 'string'
|
||||
? body.platform
|
||||
: calendarPiece?.platform
|
||||
? String(calendarPiece.platform)
|
||||
: null;
|
||||
|
||||
const brief = buildRrssGenerationBrief({
|
||||
tenantId,
|
||||
clientSlug: tenant?.slug || 'cliente',
|
||||
@@ -202,6 +209,7 @@ export async function POST(req: NextRequest) {
|
||||
notes: notesBase,
|
||||
pillar,
|
||||
month,
|
||||
platform: platformFromBody,
|
||||
scheduledAt:
|
||||
typeof body.scheduled_at === 'string' ? body.scheduled_at : null,
|
||||
calendarPiece: calendarPiece
|
||||
@@ -222,9 +230,7 @@ export async function POST(req: NextRequest) {
|
||||
hashtags: calendarPiece.hashtags
|
||||
? String(calendarPiece.hashtags)
|
||||
: null,
|
||||
platform: calendarPiece.platform
|
||||
? String(calendarPiece.platform)
|
||||
: 'instagram',
|
||||
platform: platformFromBody || 'instagram',
|
||||
}
|
||||
: null,
|
||||
recentPipeline: (recentRows || []).map((r) => ({
|
||||
|
||||
Reference in New Issue
Block a user