fix: only cache name for successful API queries

This commit is contained in:
CMEONE
2024-10-30 02:58:43 -05:00
parent 46424a3a01
commit fc1eb68687

View File

@@ -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;
}) })
); );