mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 05:06:53 +08:00
fix(examples): change quickschedule plugin backend URL to updated version
This commit is contained in:
parent
f248fe9c60
commit
fb22e6eeb2
5 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ class AvailabilityDraftExtension extends DraftStoreExtension
|
|||
data.attendees = participants.map (p) ->
|
||||
name: p.name, email: p.email, isSender: p.isMe()
|
||||
console.log "Sending request!\n",JSON.stringify data
|
||||
serverUrl = "https://sendavail.herokuapp.com/register-events"
|
||||
serverUrl = "https://quickschedule.herokuapp.com/register-events"
|
||||
request.post {url: serverUrl, body: JSON.stringify(data)}, (error, resp, data) =>
|
||||
console.log(error,resp,data)
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ method. Here, we’re registering the events before we send the draft.</p>
|
|||
data.attendees = participants.map (p) ->
|
||||
<span class="hljs-attribute">name</span>: p.name, <span class="hljs-attribute">email</span>: p.email, <span class="hljs-attribute">isSender</span>: c.isMe()
|
||||
<span class="hljs-built_in">console</span>.log <span class="hljs-string">"Sending request!\n"</span>,JSON.stringify data
|
||||
serverUrl = <span class="hljs-string">"https://sendavail.herokuapp.com/register-events"</span>
|
||||
serverUrl = <span class="hljs-string">"https://quickschedule.herokuapp.com/register-events"</span>
|
||||
request.post {<span class="hljs-attribute">url</span>: serverUrl, <span class="hljs-attribute">body</span>: JSON.stringify(data)}, <span class="hljs-function"><span class="hljs-params">(error, resp, data)</span> =></span>
|
||||
<span class="hljs-built_in">console</span>.log(error,resp,data)
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ module.exports =
|
|||
# The URL points to the event page with this time slot selected
|
||||
eventUrl = url.format({
|
||||
protocol: "https"
|
||||
host: "sendavail.herokuapp.com"
|
||||
host: "quickschedule.herokuapp.com"
|
||||
pathname: "/event/#{e.serverKey}"
|
||||
})
|
||||
times.appendNode("div")
|
||||
|
|
|
@ -19,7 +19,7 @@ class AvailabilityDraftExtension extends DraftStoreExtension
|
|||
data.attendees = participants.map (p) ->
|
||||
name: p.name, email: p.email, isSender: p.isMe()
|
||||
console.log "Sending request!\n",JSON.stringify data
|
||||
serverUrl = "https://sendavail.herokuapp.com/register-events"
|
||||
serverUrl = "https://quickschedule.herokuapp.com/register-events"
|
||||
request.post {url: serverUrl, body: JSON.stringify(data)}, (error, resp, data) =>
|
||||
console.log(error,resp,data)
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ module.exports =
|
|||
# The URL points to the event page with this time slot selected
|
||||
eventUrl = url.format({
|
||||
protocol: "https"
|
||||
host: "sendavail.herokuapp.com"
|
||||
host: "quickschedule.herokuapp.com"
|
||||
pathname: "/event/#{e.serverKey}"
|
||||
})
|
||||
times.appendNode("div")
|
||||
|
|
Loading…
Reference in a new issue