fix: dont try to post of parent is not null

This commit is contained in:
Nevo David 2026-01-11 14:57:08 +07:00
parent c5bacf7d43
commit ce94f9bcc4
2 changed files with 7 additions and 2 deletions

View File

@ -83,7 +83,12 @@ export class PostActivity {
@ActivityMethod()
async getPostsList(orgId: string, postId: string) {
return this._postService.getPostsRecursively(postId, true, orgId);
const getPosts = await this._postService.getPostsRecursively(postId, true, orgId);
if (!getPosts || getPosts.length === 0 || getPosts[0].parentPostId) {
return [];
}
return getPosts;
}
@ActivityMethod()

View File

@ -30,7 +30,7 @@ export class InstagramStandaloneProvider
'instagram_business_manage_comments',
'instagram_business_manage_insights',
];
override maxConcurrentJob = 200; // Instagram standalone has stricter limits
override maxConcurrentJob = 200; // Instagram standalone has stricter limits
dto = InstagramDto;
editor = 'normal' as const;