Skip to content

Commit a2c29f4

Browse files
committed
Merge branch 'new-workspace-unblock' into stage
2 parents 02c2717 + cdf5d6e commit a2c29f4

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
@@ -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)