diff --git a/api/bots/mother.ts b/api/bots/mother.ts index fca6dfc..ca4b0bf 100644 --- a/api/bots/mother.ts +++ b/api/bots/mother.ts @@ -35,6 +35,6 @@ export function init() { }) } -const botSVG = ` +const botSVG = ` ` \ No newline at end of file diff --git a/api/models/index.ts b/api/models/index.ts index bb8f386..18e74ae 100644 --- a/api/models/index.ts +++ b/api/models/index.ts @@ -17,7 +17,7 @@ const config = require(path.join(__dirname,'../../config/config.json'))[env] const sequelize = new Sequelize({ ...config, - logging: console.log,//process.env.SQL_LOG==='true' ? console.log : false, + logging: process.env.SQL_LOG==='true' ? console.log : false, models: [Chat,Contact,Invite,Message,Subscription,MediaKey,ChatMember,Timer,Bot,ChatBot,BotMember] }) const models = sequelize.models diff --git a/api/network/send.ts b/api/network/send.ts index 5b68431..07f3a93 100644 --- a/api/network/send.ts +++ b/api/network/send.ts @@ -18,7 +18,7 @@ export async function sendMessage(params) { const { type, chat, message, sender, amount, success, failure, skipPubKey } = params let msg = newmsg(type, chat, sender, message) - console.log("=> MSG TO SEND",msg) + // console.log("=> MSG TO SEND",msg) // console.log(type,message) if(!(sender&&sender.publicKey)) { diff --git a/package-lock.json b/package-lock.json index c876819..049e968 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11203,9 +11203,9 @@ } }, "sphinx-bot": { - "version": "0.1.19", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.19.tgz", - "integrity": "sha512-tQiuAgoRbe1dTkVEcVo51xDJcugEKgezxME6WVFPPqr0ZxwdRpKo1CTr9Kxpm6oB+GSh4g4ilVLacqo13rVI2g==", + "version": "0.1.20", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.20.tgz", + "integrity": "sha512-VQM5r47mikJTDVVwPKx+3eeEGMl6AHGC5bZJdTK6QuNS2o6SiZZor0Fm79YVD0cprOt2Ype2L54Msko+QOpSdA==", "requires": { "eventemitter3": "^4.0.7", "isomorphic-dompurify": "^0.6.0" diff --git a/package.json b/package.json index 679f14c..5178623 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^2.3.0", - "sphinx-bot": "^0.1.19", + "sphinx-bot": "^0.1.20", "tail": "^2.0.3", "ts-node": "^8.5.4", "tsc": "^1.20150623.0",