Skip to content

Commit f2c8159

Browse files
committed
imp(cloudpayments): respect new limiter
1 parent eb8690a commit f2c8159

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/billing/cloudpayments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ export default class CloudPaymentsWebhooks {
357357

358358
try {
359359
await businessOperation.setStatus(BusinessOperationStatus.Confirmed);
360-
await workspace.resetBillingPeriod();
361360
await workspace.changePlan(tariffPlan._id);
362361

363362
const subscriptionId = body.SubscriptionId;
@@ -427,7 +426,7 @@ export default class CloudPaymentsWebhooks {
427426

428427
try {
429428
await publish('cron-tasks', 'cron-tasks/limiter', JSON.stringify({
430-
type: 'check-single-workspace',
429+
type: 'unblock-workspace',
431430
workspaceId: data.workspaceId,
432431
}));
433432
} 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)