Browse Source

fix hook url

push-params
Evan Feenstra 4 years ago
parent
commit
f61bb8dd16
  1. 2
      api/controllers/bots.ts
  2. 2
      dist/api/controllers/bots.js
  3. 2
      dist/api/controllers/bots.js.map

2
api/controllers/bots.ts

@ -211,7 +211,7 @@ export async function postToBotServer(msg, bot, route:string): Promise<boolean>
} else {
url += ('/'+route)
}
const r = await fetch(bot.webhook, {
const r = await fetch(url, {
method:'POST',
body:JSON.stringify(
buildBotPayload(msg)

2
dist/api/controllers/bots.js

@ -222,7 +222,7 @@ function postToBotServer(msg, bot, route) {
else {
url += ('/' + route);
}
const r = yield node_fetch_1.default(bot.webhook, {
const r = yield node_fetch_1.default(url, {
method: 'POST',
body: JSON.stringify(buildBotPayload(msg)),
headers: {

2
dist/api/controllers/bots.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save