π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(calendar): clear the stored error when a post fails again uncuratedly
Gilad Resisie333f75bd4cf
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.tsindex 38ed9bc83..bce687e07 100644--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts@@ -439,7 +439,10 @@ export class PostsRepository {},data: {state,- ...(errorMessage ? { error: errorMessage } : {}),+ // Always overwrite on a new failure - keeping the previous value would+ // show a stale (and now wrong) message for a post that failed again+ // for a different reason.+ ...(err ? { error: errorMessage ?? null } : {}),},include: {integration: {