File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments