diff --git a/api/controllers/actions.ts b/api/controllers/actions.ts index e2c9165..3520479 100644 --- a/api/controllers/actions.ts +++ b/api/controllers/actions.ts @@ -42,7 +42,7 @@ export const getBotsForTribe = async (req, res) => { export const createBot = async (req, res) => { const { chat_id, name, } = req.body const chatId = parseInt(chat_id) - const chat = await models.Chat.findOne({where:{chatId}}) + const chat = await models.Chat.findOne({where:{id:chatId}}) if(!chat) return failure(res,'no chat') const owner = await models.Contact.findOne({where: {isOwner:true}}) diff --git a/dist/api/controllers/actions.js b/dist/api/controllers/actions.js index 770d6d6..3f143cc 100644 --- a/dist/api/controllers/actions.js +++ b/dist/api/controllers/actions.js @@ -51,7 +51,7 @@ exports.getBotsForTribe = (req, res) => __awaiter(void 0, void 0, void 0, functi exports.createBot = (req, res) => __awaiter(void 0, void 0, void 0, function* () { const { chat_id, name, } = req.body; const chatId = parseInt(chat_id); - const chat = yield models_1.models.Chat.findOne({ where: { chatId } }); + const chat = yield models_1.models.Chat.findOne({ where: { id: chatId } }); if (!chat) return res_1.failure(res, 'no chat'); const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } }); diff --git a/dist/api/controllers/actions.js.map b/dist/api/controllers/actions.js.map index fa2e72b..75ce4fd 100644 --- a/dist/api/controllers/actions.js.map +++ b/dist/api/controllers/actions.js.map @@ -1 +1 @@ -{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../api/controllers/actions.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA+C;AAC/C,6BAA4B;AAC5B,sCAAqC;AACrC,sCAAkC;AAClC,oCAAmC;AACnC,qCAAoC;AACpC,iCAAgC;AAChC,2CAA0C;AAE1C;;;EAGE;AAEF,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC,CAAA;AAEjE,QAAA,OAAO,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IACtC,IAAI;QACA,MAAM,IAAI,GAAG,MAAM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,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAChD,MAAM,OAAO,CAAC,WAAW,CAAC;gBACtB,IAAI,EAAE,OAAO;gBACb,MAAM,kCAAO,KAAK,CAAC,UAAU,KAAE,KAAK,GAAE;gBACtC,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;gBACjE,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO;gBACrC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAO,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,aAAO,CAAC,GAAG,EAAE,QAAQ,CAAC;aACxC,CAAC,CAAA;SACL;aAAM;YACH,OAAO,aAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;SACnC;IACL,CAAC;CAAA;AAhFD,sCAgFC"} \ No newline at end of file +{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../api/controllers/actions.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA+C;AAC/C,6BAA4B;AAC5B,sCAAqC;AACrC,sCAAkC;AAClC,oCAAmC;AACnC,qCAAoC;AACpC,iCAAgC;AAChC,2CAA0C;AAE1C;;;EAGE;AAEF,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC,CAAA;AAEjE,QAAA,OAAO,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IACtC,IAAI;QACA,MAAM,IAAI,GAAG,MAAM,eAAM,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;QACvC,aAAO,CAAC,GAAG,EAAE;YACT,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CA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