Skip to content

Commit

Permalink
Fix not enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcse committed Jan 5, 2025
1 parent f84a56d commit 4ab50bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class TwitterPostClient {

const generateNewTweetLoop = async () => {
// Check for pending tweets first
await this.handlePendingTweet();
if (this.approvalRequired) await this.handlePendingTweet();

const lastPost = await this.runtime.cacheManager.get<{
timestamp: number;
Expand Down Expand Up @@ -332,8 +332,8 @@ export class TwitterPostClient {
}
}

// Start the pending tweet check loop
this.runPendingTweetCheckLoop();
// Start the pending tweet check loop if enabled
if (this.approvalRequired) this.runPendingTweetCheckLoop();
}

private runPendingTweetCheckLoop() {
Expand Down

0 comments on commit 4ab50bb

Please sign in to comment.