Skip to content

Commit

Permalink
Merge pull request #824 from palsp/fix/twitter-cache-timestamp
Browse files Browse the repository at this point in the history
fix: twitter cache expires
  • Loading branch information
shakkernerd authored Dec 4, 2024
2 parents 7c93797 + 8e4be2a commit 0f46dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-twitter/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,15 +617,15 @@ export class ClientBase extends EventEmitter {
await this.runtime.cacheManager.set(
`twitter/${this.profile.username}/timeline`,
timeline,
{ expires: 10 * 1000 }
{ expires: Date.now() + 10 * 1000 }
);
}

async cacheMentions(mentions: Tweet[]) {
await this.runtime.cacheManager.set(
`twitter/${this.profile.username}/mentions`,
mentions,
{ expires: 10 * 1000 }
{ expires: Date.now() + 10 * 1000 }
);
}

Expand Down

0 comments on commit 0f46dc7

Please sign in to comment.