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

+8
View File
@@ -14,6 +14,10 @@ run = ["npm", "run", "start"]
localPort = 5000
externalPort = 80
[[ports]]
localPort = 33821
externalPort = 8099
[[ports]]
localPort = 34045
externalPort = 3003
@@ -46,6 +50,10 @@ externalPort = 8081
localPort = 40537
externalPort = 3000
[[ports]]
localPort = 41803
externalPort = 8008
[[ports]]
localPort = 42161
externalPort = 6000
+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) {