fix: added rateLimiter after retrieving pr files

This commit is contained in:
Randell Dawson
2018-11-22 11:20:18 -08:00
committed by mrugesh mohapatra
parent c5cc5a887b
commit 545324ea46

View File

@ -14,6 +14,7 @@ const guideFolderChecks = async (number, prFiles, user) => {
const response = await fetch(fileUrl);
const fileContent = await response.text();
newErrors = checkPath(fullPath, fileContent);
await rateLimiter(+process.env.RATELIMIT_INTERVAL | 1500);
}
if (newErrors) {
prErrors = prErrors.concat(newErrors);