Skip to content

Commit f6e402e

Browse files
committed
feat(auth): account scopes and expired pat workflow
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 0bc5abb commit f6e402e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/renderer/utils/api/octokit.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ export function clearOctokitClientCache(): void {
3838
* @param account The account to clear the cache for
3939
*/
4040
export function clearOctokitClientCacheForAccount(account: Account): void {
41-
for (const type of ['rest', 'graphql'] as APIClientType[]) {
42-
octokitClientCache.delete(getClientCacheKey(account, type));
43-
}
41+
octokitClientCache.delete(getClientCacheKey(account, 'rest'));
42+
octokitClientCache.delete(getClientCacheKey(account, 'graphql'));
4443
}
4544

4645
/**

0 commit comments

Comments
 (0)