fix: only cache name for successful API queries
This commit is contained in:
@@ -156,12 +156,12 @@ export class GitHubStatsService {
|
|||||||
if(json.name) {
|
if(json.name) {
|
||||||
name = json.name;
|
name = json.name;
|
||||||
}
|
}
|
||||||
|
await this.setCachedData(cacheKey, name);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.setCachedData(cacheKey, name);
|
|
||||||
names[contributor] = name;
|
names[contributor] = name;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user