@@ -5,32 +5,6 @@ import {
5
5
import util from '../../util'
6
6
import config from 'config'
7
7
import querystring from 'querystring'
8
- import topicService from '../../services/topicService'
9
-
10
- const _addProjectStatus = ( req , logger , project ) => {
11
- const topics = [
12
- {
13
- title : 'Hello, Coder here! Your project has been created successfully' ,
14
- body : 'It took almost 245ms for me to create it, but all is good now.\
15
- That\'s a lot of hard work for a robot, you know!'
16
- } , {
17
- title : 'Hey there, I\'m ready with the next steps for your project!' ,
18
- body : `<p>I went over the project and I see we still need to collect more\
19
- details before I can use my super computational powers and create your quote.</p>\
20
- <p>Head over to the <a href="/projects/${ project . id } /specification/">Specification</a>\
21
- section and answer all of the required questions. If you already have a document\
22
- with specification, verify it against our checklist and upload it.</p>`
23
- }
24
- ]
25
- // NOTE: running these in sequence cos we want topic[0] to be created first
26
- // firing these events in parallel doesn't ensure that topic[0] is created first
27
- return topicService . createTopic ( req , project . id , topics [ 0 ] . title , topics [ 0 ] . body )
28
- . then ( ( ) => topicService . createTopic ( req , project . id , topics [ 1 ] . title , topics [ 1 ] . body ) )
29
- . then ( ( ) => {
30
- logger . debug ( 'post-project creation messages posted' )
31
- return true
32
- } )
33
- }
34
8
35
9
/**
36
10
* Creates a lead in salesforce for the connect project.
@@ -84,7 +58,6 @@ const projectCreatedHandler = (logger, msg, channel) => {
84
58
}
85
59
}
86
60
return Promise . all ( [
87
- _addProjectStatus ( req , logger , project ) ,
88
61
_addSalesforceLead ( token , logger , project ) . then ( ( resp ) => logger . debug ( 'web to lead response:' , resp . status ) )
89
62
] ) ;
90
63
} )
0 commit comments