mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-18 12:46:43 +02:00
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:
1 parent
73fe39bfbd
commit
d32b5ca306
2 files changed
+10
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user