Skip to content

Commit

Permalink
feat: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 13, 2024
1 parent 58912d5 commit 703d3e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/routes/twitter/api/web-api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const twitterGot = async (url, params) => {
await cache.set(`twitter:cookie:${token}`, JSON.stringify(dispatchers[token].jar.serializeSync()), config.cache.contentExpire);
}
if (response.status === 403) {
logger.debug(`Delete twitter cookie for token ${token}`);
await cache.set(`twitter:cookie:${token}`, '', config.cache.contentExpire);
}

Expand Down

0 comments on commit 703d3e6

Please sign in to comment.