Skip to content

Commit

Permalink
Merge pull request #229 from enixsoft/patch-1
Browse files Browse the repository at this point in the history
Add clearExpiredByTimeout to RateLimiterPostgres.js
  • Loading branch information
animir authored Oct 30, 2023
2 parents 1165e3c + e6f6969 commit 72b7315
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/RateLimiterPostgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class RateLimiterPostgres extends RateLimiterStoreAbstract {
}
});
} else {
if (this.clearExpiredByTimeout) {
this._clearExpiredHourAgo();
}
if (typeof cb === 'function') {
cb();
}
Expand Down

0 comments on commit 72b7315

Please sign in to comment.