Browse Source

action chck

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

2
api/controllers/actions.ts

@ -67,7 +67,9 @@ export async function finalAction(a:Action, bot_id:string){
const owner = await models.Contact.findOne({ where: { isOwner: true } })
console.log("=> ACTION HIT", a)
let theChat = await models.Chat.findOne({ where: { uuid: chat_uuid } })
console.log("THE CHAT",theChat&&theChat.dataValues)
if(!theChat) {
// fORWARD BACK TO THE TRIBE ADMIN
const bot = await models.Bot.findOne({where:{

2
dist/api/controllers/actions.js

@ -69,7 +69,9 @@ function finalAction(a, bot_id) {
if (!chat_uuid)
throw 'no chat_uuid';
const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } });
console.log("=> ACTION HIT", a);
let theChat = yield models_1.models.Chat.findOne({ where: { uuid: chat_uuid } });
console.log("THE CHAT", theChat && theChat.dataValues);
if (!theChat) {
// fORWARD BACK TO THE TRIBE ADMIN
const bot = yield models_1.models.Bot.findOne({ where: {

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

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