diff --git a/.replit b/.replit index ad7eeab..7bce39b 100644 --- a/.replit +++ b/.replit @@ -34,10 +34,6 @@ externalPort = 5000 localPort = 37659 externalPort = 4200 -[[ports]] -localPort = 39387 -externalPort = 8008 - [[ports]] localPort = 40537 externalPort = 3000 diff --git a/client/src/pages/new-post.tsx b/client/src/pages/new-post.tsx index 03de55e..b8dd866 100644 --- a/client/src/pages/new-post.tsx +++ b/client/src/pages/new-post.tsx @@ -213,7 +213,8 @@ export default function NewPost() { const createPostMutation = useMutation({ mutationFn: (data: any) => apiRequest('POST', '/api/posts', data), - onSuccess: () => { + onSuccess: async () => { + await queryClient.invalidateQueries({ queryKey: ['/api/scheduled-posts'], refetchType: 'all' }); toast({ title: "Publication créée", description: "La publication a été créée avec succès",