fix: use config var for rateLimiter

Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
mrugesh mohapatra
2018-11-12 11:47:24 -08:00
parent ce156ee61d
commit 7ec1ebc561

View File

@ -43,7 +43,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
if (guideFolderErrorsComment) {
log.update(number, 'comment', guideFolderErrorsComment);
const result = await addComment(number, guideFolderErrorsComment);
await rateLimiter(1400);
await rateLimiter(process.env.RATELIMIT_INTERVAL | 1500);
labelsToAdd['status: needs update'] = 1;
}
else {