stop sending duplicate repos

This commit is contained in:
Kyle Fang
2019-08-27 21:11:20 +08:00
parent 87309d3df8
commit f66d8a2f0d

View File

@@ -57,7 +57,7 @@ async function main() {
return;
}
const cached = await getFromMemCache(repo.url);
if (cached == null || repo.stars - cached.stars > 500) {
if (cached == null) {
await sendToTelegram(repo);
await saveToMemCache(repo);
}