mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-17 06:17:28 +00:00
refactor(cards): added typings for cards and fetchers (#1596)
* refactor(cards): added typings for cards and fetchers * chore: move types to separate file
This commit is contained in:
+4
-4
@@ -47,10 +47,10 @@ module.exports = async (req, res) => {
|
||||
);
|
||||
|
||||
/*
|
||||
if star count & fork count is over 1k then we are kFormating the text
|
||||
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
|
||||
*/
|
||||
if star count & fork count is over 1k then we are kFormating the text
|
||||
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.starCount;
|
||||
const forks = repoData.forkCount;
|
||||
const isBothOver1K = stars > 1000 && forks > 1000;
|
||||
|
||||
Reference in New Issue
Block a user