MCPcopy Index your code
hub / github.com/codecombat/codecombat / sendSlackMessage

Function sendSlackMessage

app/core/contact.js:81–90  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

79 },
80
81 sendSlackMessage (data) {
82 try {
83 if (data.name == null) { data.name = typeof me !== 'undefined' && me !== null ? me.broadName() : undefined }
84 if (data.email == null) { data.email = typeof me !== 'undefined' && me !== null ? me.get('email') : undefined }
85 } catch (e) {
86 data.lookupError = e
87 }
88 const jqxhr = $.ajax({ type: 'POST', url: '/contact/slacklog', data })
89 return new Promise(jqxhr.then)
90 }
91}

Callers 2

logContactFlowToSlackMethod · 0.85

Calls 2

broadNameMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected