Skip to content

Commit d7e56d1

Browse files
wesleyschlenkermarkstos
authored andcommitted
fix: standardize requestDate to requestTime
1 parent b9dac1a commit d7e56d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rateLimiting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ RateLimit.parseRateLimits = function (headers) {
104104
RateLimit.updateRateLimits = function (headers) {
105105
var newLimits = this.parseRateLimits(headers)
106106
if (newLimits) {
107-
this.requestDate = new Date()
107+
this.requestTime = new Date()
108108
this.shortTermLimit =
109109
!isNaN(newLimits.shortTermLimit) ? newLimits.shortTermLimit : 0
110110
this.shortTermUsage =

0 commit comments

Comments
 (0)