π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix post now
Nevo David21d5d2c8c8ac
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.tsindex 3222e75ee..680045568 100644--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts@@ -149,7 +149,11 @@ export class PostsService {`Error posting on ${firstPost.integration?.providerIdentifier} for ${firstPost?.integration?.name}`,`An error occurred while posting on ${firstPost.integration?.providerIdentifier- } ${!process.env.NODE_ENV || process.env.NODE_ENV === 'development' ? err : ''}`,+ } ${+ !process.env.NODE_ENV || process.env.NODE_ENV === 'development'+ ? err+ : ''+ }`,true);}@@ -390,8 +394,8 @@ export class PostsService {}if (- (body.type === 'schedule' || body.type === 'now') &&- dayjs(body.date).isAfter(dayjs())+ body.type === 'now' ||+ (body.type === 'schedule' && dayjs(body.date).isAfter(dayjs()))) {this._workerServiceProducer.emit('post', {id: posts[0].id,@@ -535,11 +539,7 @@ export class PostsService {async generatePostsDraft(orgId: string, body: CreateGeneratedPostsDto) {const getAllIntegrations = (await this._integrationService.getIntegrationsList(orgId)- ).filter(- (f) =>- !f.disabled &&- f.providerIdentifier !== 'reddit'- );+ ).filter((f) => !f.disabled && f.providerIdentifier !== 'reddit');// const posts = chunk(body.posts, getAllIntegrations.length);const allDates = dayjs()