mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-02 18:19:27 +00:00
refactor: refactor repo card (#1325)
* refactor: refactored repo-card * test: fix tests * test: fixed tests * fix: unprovided description error
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ module.exports = async (req, res) => {
|
||||
and if both are zero we are not showing the stats
|
||||
so we can just make the cache longer, since there is no need to frequent updates
|
||||
*/
|
||||
const stars = repoData.stargazers.totalCount;
|
||||
const stars = repoData.starCount;
|
||||
const forks = repoData.forkCount;
|
||||
const isBothOver1K = stars > 1000 && forks > 1000;
|
||||
const isBothUnder1 = stars < 1 && forks < 1;
|
||||
|
||||
Reference in New Issue
Block a user