feat: implement multi-step reel creation flow with video upload, music selection, text generation, and scheduling.

This commit is contained in:
Michael committed 2026-03-02 12:10:50 +01:00
1 parent 0e9622b5eb
commit 9e9eb7d1bb
6 files changed
+10 -10

No files matched your search

+3 -2
View File
@@ -1514,11 +1514,12 @@ export async function registerRoutes(app: Express): Promise<Server> {
return res.status(404).json({ error: "Page non trouvée" });
}
let pageData = insertSocialPageSchema.partial().parse(req.body);
let parsedData = insertSocialPageSchema.partial().parse(req.body);
let pageData: Partial<SocialPage> = { ...parsedData };
// If accessToken is being updated, recalculate expiration date (60 days from now)
// AND reset the status to valid so the UI updates immediately
if (pageData.accessToken) {
if (parsedData.accessToken) {
const tokenExpiresAt = new Date();
tokenExpiresAt.setDate(tokenExpiresAt.getDate() + 60);
pageData = {