Skip to content

Commit 78e06f0

Browse files
committed
fix: cache api key
1 parent 9d032f5 commit 78e06f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ConfigService {
4646
throw new UserError('Invalid Dr. Git API key', Severity.ERROR);
4747
}
4848

49-
return apiKey;
49+
return this.cacheService.set(apiKeyCacheKey, apiKey, cacheConfig.ttl);
5050
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5151
} catch (error: any) {
5252
// Octokit throws RequestError if fails, but we need to check the status only because the error is not an instance of RequestError

0 commit comments

Comments
 (0)