Skip to content

Commit

Permalink
make sure to wait for token update before updating cache
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Jul 20, 2021
1 parent ec15bf8 commit e4c7a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/easy-share/twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export async function getTokensetFromCompletedAuthFlow(tokens: {
user.token = response.oauth_token;
user.token_secret = response.oauth_token_secret;
user.updated = new Date();
user.save();
await user.save();
await updateUserInCache(user.id);
}
await addEvent(
Expand Down

0 comments on commit e4c7a62

Please sign in to comment.