fix(rsocials): postiz sweep skips nodes with any postizStatus set

Earlier version only skipped when postizPostId was set. If a send attempt
failed (no postizPostId but postizStatus='failed'), the sweep retried every
60s and hammered Postiz's throttler. Retries now require the user to clear
postizStatus — same gate as a fresh node.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-17 10:56:23 -04:00
parent 1cde95f3fc
commit b2fbe7ded4
1 changed files with 3 additions and 0 deletions

View File

@ -944,6 +944,9 @@ async function postizSweep() {
if (node.type !== 'post') continue;
const d = node.data as PostNodeData;
if (d.postizPostId) continue;
// Skip any node that's already been handled by Postiz (queued/published/failed).
// A failed send needs the user to clear postizStatus before we retry.
if (d.postizStatus) continue;
if (d.status !== 'scheduled') continue;
if (!d.scheduledAt) continue;
const ts = new Date(d.scheduledAt).getTime();