@@ -5,25 +5,6 @@ import {
55import util from '../../util'
66import topicService from '../../services/topicService'
77
8- //
9- // // Handle internal events
10- // const internalEvents = [
11- // EVENT.INTERNAL.PROJECT_DRAFT_CREATED,
12- // EVENT.INTERNAL.PROJECT_LAUNCHED,
13- // EVENT.INTERNAL.PROJECT_UPDATED,
14- // EVENT.INTERNAL.PROJECT_CANCELLED,
15- // EVENT.INTERNAL.PROJECT_COMPLETED,
16- // EVENT.INTERNAL.PROJECT_DELETED
17- // ]
18- //
19- // // Publish messages to the queue
20- // _.map(internalEvents, (evt) => {
21- // app.on(evt, ({payload, props}) => {
22- // logger.debug('handling ' + evt)
23- // let key = evt.substring(evt.indexOf('.') + 1)
24- // return app.services.pubsub.publish(key, payload, props)
25- // })
26- // })
278const _addProjectStatus = ( req , logger , project ) => {
289 const topics = [
2910 {
@@ -55,7 +36,7 @@ const _addProjectStatus = (req, logger, project) => {
5536 * @param {[type] } channel channel to ack, nack
5637 */
5738const projectCreatedHandler = ( logger , msg , channel ) => {
58- let project = JSON . parse ( msg . content . toString ( ) )
39+ let project = JSON . parse ( msg . content )
5940 return util . getSystemUserToken ( logger )
6041 . then ( token => {
6142 const req = {
0 commit comments