Skip to content

Commit e888848

Browse files
talygurynCopilot
andauthored
Update workers/limiter/src/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 09c12d9 commit e888848

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workers/limiter/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default class LimiterWorker extends Worker {
316316
...workspace,
317317
billingPeriodEventsCount: workspaceEventsCount,
318318
isBlocked: isAlreadyBlocked || shouldBeBlockedByQuota,
319-
blockedDate: workspace.blockedDate,
319+
blockedDate: (shouldBeBlockedByQuota && !isAlreadyBlocked) ? new Date() : workspace.blockedDate,
320320
};
321321

322322
return {

0 commit comments

Comments
 (0)