π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: no sleep option
Nevo David0144e3984167
diff --git a/apps/orchestrator/src/workflows/post.workflow.ts b/apps/orchestrator/src/workflows/post.workflow.tsindex 0901a5e88..37ca18647 100644--- a/apps/orchestrator/src/workflows/post.workflow.ts+++ b/apps/orchestrator/src/workflows/post.workflow.ts@@ -85,7 +85,11 @@ export async function postWorkflow({// if it's a repeatable post, we should ignore this.if (!postNow) {- await sleep(dayjs(post.publishDate).diff(dayjs(), 'millisecond'));+ await sleep(+ dayjs(post.publishDate).isBefore(dayjs())+ ? 0+ : dayjs(post.publishDate).diff(dayjs(), 'millisecond')+ );}// if refresh is needed from last time, let's inform the user