Update post scheduling to synchronize with the posts table

Synchronize scheduled post's `scheduledFor` field with the database when updating post schedule in server/routes.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/1VOBLTw
This commit is contained in:
michaelschal committed 2025-10-10 09:11:27 +00:00
1 parent 73fe39bfbd
commit d32b5ca306
2 files changed
+10

No files matched your search

+2
View File
@@ -840,6 +840,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
if (scheduledAt) {
updateData.scheduledAt = new Date(scheduledAt);
// Synchroniser avec la table posts
await storage.updatePost(scheduledPost.postId, { scheduledFor: new Date(scheduledAt) });
}
if (pageId) {