fix: dont try to post of parent is not null
This commit is contained in:
parent
c5bacf7d43
commit
ce94f9bcc4
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue