Permalink
Browse files

Update index.js

  • Loading branch information...
schme16 committed Jun 5, 2018
1 parent 764e461 commit de8920b2d1f2554e6692637c423f533b374d30da
Showing with 4 additions and 2 deletions.
  1. +4 −2 index.js
View
@@ -138,7 +138,9 @@ function repoFunc (req, res) {
console.log("Error: " + 'SHA1 hash is missing in /repo -> request: ' + req.originalUrl + ' JSON=' + JSON.stringify(body))
strikes[meta.filePath] = strikes[meta.filePath] || 0
if (strikes[meta.filePath] >= 10) tempBlacklist.push(meta.filePath)//meta.user + '/' + meta.repo)
if (strikes[meta.filePath] >= 10) {
//tempBlacklist.push(meta.filePath)//meta.user + '/' + meta.repo)
}
else {
strikes[meta.filePath]++
}
@@ -171,7 +173,7 @@ function lastCall (meta, sha, req, res, cacheing) {
else {
if (!cacheing) res.sendStatus(500)
console.log("Error: " + 'Status 500: SHA1 hash is missing in lastCall() || ' + meta.user + '/' + meta.repo + '/' + sha + '/' + meta.filePath)
tempBlacklist.push(meta.filePath)//meta.user + '/' + meta.repo)
//tempBlacklist.push(meta.filePath)//meta.user + '/' + meta.repo)
}
}

0 comments on commit de8920b

Please sign in to comment.