π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: don't post without a subscription
Nevo David724e5bc497a4
diff --git a/apps/orchestrator/src/activities/post.activity.ts b/apps/orchestrator/src/activities/post.activity.tsindex fcb9997ee..bcf27f230 100644--- a/apps/orchestrator/src/activities/post.activity.ts+++ b/apps/orchestrator/src/activities/post.activity.ts@@ -22,6 +22,7 @@ import {organizationId,postId as postIdSearchParam,} from '@gitroom/nestjs-libraries/temporal/temporal.search.attribute';+import { SubscriptionService } from '@gitroom/nestjs-libraries/database/prisma/subscriptions/subscription.service';@Injectable()@Activity()@@ -33,7 +34,8 @@ export class PostActivity {private _integrationService: IntegrationService,private _refreshIntegrationService: RefreshIntegrationService,private _webhookService: WebhooksService,- private _temporalService: TemporalService+ private _temporalService: TemporalService,+ private _subscriptionService: SubscriptionService) {}@ActivityMethod()@@ -83,6 +85,11 @@ export class PostActivity {@ActivityMethod()async getPostsList(orgId: string, postId: string) {+ const subscription = await this._subscriptionService.getSubscription(orgId);+ if (!subscription) {+ return [];+ }+const getPosts = await this._postService.getPostsRecursively(postId,true,diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex b324a5a1a..8930abba8 100644--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@ -222,7 +222,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {if (body.indexOf('picture_size_check_failed') > -1) {return {type: 'bad-body' as const,- value: 'Picture / Video size is invalid, must be at least 720p',+ value: 'Video must be at least 720p, Picture must no exceed 1080p',};}