Skip to content

Commit fa97f7d

Browse files
authored
Merge pull request #488 from codex-team/new-workspace-unblock
imp(cloudpayments): respect new limiter
2 parents 0a52335 + 182e65a commit fa97f7d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/billing/cloudpayments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ userId: ${userId}`
383383

384384
try {
385385
await businessOperation.setStatus(BusinessOperationStatus.Confirmed);
386-
await workspace.resetBillingPeriod();
387386
await workspace.changePlan(tariffPlan._id);
388387

389388
const subscriptionId = body.SubscriptionId;
@@ -453,7 +452,7 @@ userId: ${userId}`
453452

454453
try {
455454
await publish('cron-tasks', 'cron-tasks/limiter', JSON.stringify({
456-
type: 'check-single-workspace',
455+
type: 'unblock-workspace',
457456
workspaceId: data.workspaceId,
458457
}));
459458
} catch (e) {

src/models/workspace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ export default class WorkspaceModel extends AbstractModel<WorkspaceDBScheme> imp
302302
$set: {
303303
tariffPlanId: this.tariffPlanId,
304304
billingPeriodEventsCount: 0,
305-
isBlocked: false,
306305
lastChargeDate: new Date(),
307306
},
308307
}

0 commit comments

Comments
 (0)