Skip to content

Commit e3cddeb

Browse files
committed
added timestamp
1 parent 35a928d commit e3cddeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function expressRateLimiter(
2626
redisClientOptions: RedisClientOptions,
2727
typeWeightConfig: TypeWeightConfig = defaultTypeWeightsConfig
2828
): RequestHandler {
29-
// TODO: Set 'timestamp' on res.locals to record when the request is received in UNIX format. HTTP does not inlude this.
29+
const timeStamp = new Date().valueOf();
3030
// TODO: Parse the schema to create a TypeWeightObject. Throw ValidationError if schema is invalid
3131
// TODO: Connect to Redis store using provided options. Default to localhost:6379
3232
// TODO: Configure the selected RateLimtier

0 commit comments

Comments
 (0)