File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " hawk.api" ,
3- "version" : " 1.1.21 " ,
3+ "version" : " 1.1.22 " ,
44 "main" : " index.ts" ,
55 "license" : " UNLICENSED" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import ProjectToWorkspace from '../models/projectToWorkspace';
99import Validator from '../utils/validator' ;
1010import { dateFromObjectId } from '../utils/dates' ;
1111import cloudPaymentsApi from '../utils/cloudPaymentsApi' ;
12+ import { publish } from '../rabbitmq' ;
1213
1314const { ApolloError, UserInputError, ForbiddenError } = require ( 'apollo-server-express' ) ;
1415const crypto = require ( 'crypto' ) ;
@@ -382,6 +383,14 @@ module.exports = {
382383
383384 telegram . sendMessage ( message ) ;
384385
386+ /**
387+ * Unblock workspace in limiter
388+ */
389+ await publish ( 'cron-tasks' , 'cron-tasks/limiter' , JSON . stringify ( {
390+ type : 'unblock-workspace' ,
391+ workspaceId : workspaceModel . _id . toString ( ) ,
392+ } ) ) ;
393+
385394 const updatedWorkspaceModel = await factories . workspacesFactory . findById ( workspaceId ) ;
386395
387396 return {
You can’t perform that action at this time.
0 commit comments