From 2a13343f3ef53c11b60e41d9e765c9d94c1c741f Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Sat, 20 Jun 2020 14:12:04 -0700 Subject: [PATCH] log --- api/controllers/contacts.ts | 8 ++++++++ api/helpers.ts | 2 -- api/network/receive.ts | 1 + api/utils/setup.ts | 2 +- dist/api/controllers/contacts.js | 6 ++++++ dist/api/controllers/contacts.js.map | 2 +- dist/api/helpers.js | 2 -- dist/api/helpers.js.map | 2 +- dist/api/network/receive.js | 1 + dist/api/network/receive.js.map | 2 +- dist/api/utils/setup.js | 4 +--- dist/api/utils/setup.js.map | 2 +- 12 files changed, 22 insertions(+), 12 deletions(-) diff --git a/api/controllers/contacts.ts b/api/controllers/contacts.ts index 17066d1..26f250d 100644 --- a/api/controllers/contacts.ts +++ b/api/controllers/contacts.ts @@ -204,6 +204,10 @@ const receiveContactKey = async (payload) => { const sender_alias = dat.sender.alias || 'Unknown' const sender_photo_url = dat.sender.photo_url + if(!sender_pub_key) { + return console.log("no pubkey!") + } + const owner = await models.Contact.findOne({ where: { isOwner: true }}) const sender = await models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed }}) @@ -235,6 +239,10 @@ const receiveConfirmContactKey = async (payload) => { const sender_alias = dat.sender.alias || 'Unknown' const sender_photo_url = dat.sender.photo_url + if(!sender_pub_key) { + return console.log("no pubkey!") + } + const sender = await models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed }}) if (sender_contact_key && sender) { const objToUpdate:{[k:string]:any} = {contactKey: sender_contact_key} diff --git a/api/helpers.ts b/api/helpers.ts index 808aca0..6f68d1f 100644 --- a/api/helpers.ts +++ b/api/helpers.ts @@ -38,7 +38,6 @@ const findOrCreateChat = async (params) => { const sendContactKeys = async (args) => { const { type, contactIds, contactPubKey, sender, success, failure } = args const msg = newkeyexchangemsg(type, sender) - console.log("MSG",msg) let yes:any = null let no:any = null @@ -199,7 +198,6 @@ async function asyncForEach(array, callback) { function newkeyexchangemsg(type, sender){ const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto - console.log('includePhotoUrl',includePhotoUrl) return { type: type, sender: { diff --git a/api/network/receive.ts b/api/network/receive.ts index 4c11b26..0048e6b 100644 --- a/api/network/receive.ts +++ b/api/network/receive.ts @@ -175,6 +175,7 @@ async function parseAndVerifyPayload(data){ const li = data.lastIndexOf('}') const msg = data.substring(0,li+1) const sig = data.substring(li+1) + console.log("RAW PAYLAOD",msg) try { payload = JSON.parse(msg) if(payload && payload.sender && payload.sender.pub_key) { diff --git a/api/utils/setup.ts b/api/utils/setup.ts index ff87413..a74e0a1 100644 --- a/api/utils/setup.ts +++ b/api/utils/setup.ts @@ -41,7 +41,7 @@ CREATE TABLE sphinx_timers ( msg_id BIGINT, amount DECIMAL )`) - } catch(e){console.log(e)} + } catch(e){} addTableColumn('sphinx_chats', 'escrow_amount', 'BIGINT') addTableColumn('sphinx_chats', 'escrow_millis', 'BIGINT') diff --git a/dist/api/controllers/contacts.js b/dist/api/controllers/contacts.js index b554a5f..38d2da9 100644 --- a/dist/api/controllers/contacts.js +++ b/dist/api/controllers/contacts.js @@ -184,6 +184,9 @@ const receiveContactKey = (payload) => __awaiter(void 0, void 0, void 0, functio const sender_contact_key = dat.sender.contact_key; const sender_alias = dat.sender.alias || 'Unknown'; const sender_photo_url = dat.sender.photo_url; + if (!sender_pub_key) { + return console.log("no pubkey!"); + } const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } }); const sender = yield models_1.models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed } }); if (sender_contact_key && sender) { @@ -212,6 +215,9 @@ const receiveConfirmContactKey = (payload) => __awaiter(void 0, void 0, void 0, const sender_contact_key = dat.sender.contact_key; const sender_alias = dat.sender.alias || 'Unknown'; const sender_photo_url = dat.sender.photo_url; + if (!sender_pub_key) { + return console.log("no pubkey!"); + } const sender = yield models_1.models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed } }); if (sender_contact_key && sender) { const objToUpdate = { contactKey: sender_contact_key }; diff --git a/dist/api/controllers/contacts.js.map b/dist/api/controllers/contacts.js.map index c12406e..d26f761 100644 --- a/dist/api/controllers/contacts.js.map +++ b/dist/api/controllers/contacts.js.map @@ -1 +1 @@ -{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../api/controllers/contacts.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAgC;AAChC,iCAAgC;AAChC,0CAAyC;AACzC,sCAAqC;AACrC,2CAA0C;AAC1C,sCAA6C;AAC7C,gDAAwC;AACxC,6BAA4B;AAC5B,yCAA8B;AAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAE7E,MAAM,WAAW,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IACtC,MAAM,QAAQ,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IACnF,MAAM,OAAO,GAAG,MAAM,eAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1D,MAAM,KAAK,GAAG,MAAM,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7E,MAAM,aAAa,GAAG,MAAM,eAAM,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QAC/C,IAAI,WAAW,GAAG,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA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gBAAgB,CAAA;QAC5D,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QAEhC,MAAM,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC;SACzC,CAAC,CAAA;KACF;AACF,CAAC,CAAA,CAAA;AAqBA,4DAAwB;AAnBzB,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE;IAC3B,IAAI,gBAAgB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,CAAC,CAAA;IAC9I,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC/B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACnC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;SACtB;IACF,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACb,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/api/helpers.js b/dist/api/helpers.js index fb9f771..6d8a2d9 100644 --- a/dist/api/helpers.js +++ b/dist/api/helpers.js @@ -45,7 +45,6 @@ exports.findOrCreateChat = findOrCreateChat; const sendContactKeys = (args) => __awaiter(void 0, void 0, void 0, function* () { const { type, contactIds, contactPubKey, sender, success, failure } = args; const msg = newkeyexchangemsg(type, sender); - console.log("MSG", msg); let yes = null; let no = null; let cids = contactIds; @@ -205,7 +204,6 @@ function asyncForEach(array, callback) { } function newkeyexchangemsg(type, sender) { const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto; - console.log('includePhotoUrl', includePhotoUrl); return { type: type, sender: Object.assign(Object.assign({ pub_key: sender.publicKey, contact_key: sender.contactKey }, sender.alias && { alias: sender.alias }), includePhotoUrl && { photo_url: sender.photoUrl }) diff --git a/dist/api/helpers.js.map b/dist/api/helpers.js.map index 75436c2..7b6a236 100644 --- a/dist/api/helpers.js.map +++ b/dist/api/helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../api/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAiC;AACjC,2BAA0B;AAC1B,qCAAoC;AAEpC,MAAM,SAAS,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAEtD,MAAM,gBAAgB,GAAG,CAAO,MAAM,EAAE,EAAE;IACzC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,MAAM,CAAA;IAClD,IAAI,IAAI,CAAA;IACR,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IACtB,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IAEvB,IAAI,OAAO,EAAE;QACZ,IAAI,GAAG,MAAM,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA;QAC5D,kDAAkD;KAClD;SAAM;QACN,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAA;QAC/C,MAAM,KAAK,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA;QACvE,MAAM,SAAS,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;QAC/E,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAEzE,eAAe;QACf,IA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U,CAAC;CAAA;AAQA,gDAAkB;AAInB,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QAC1C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAChD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7C;IACF,CAAC;CAAA;AAED,SAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM;IACtC,MAAM,eAAe,GAAG,MAAM,IAAI,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,YAAY,CAAA;IACzE,OAAO;QACN,IAAI,EAAE,IAAI;QACV,MAAM,gCACL,OAAO,EAAE,MAAM,CAAC,SAAS,EACzB,WAAW,EAAE,MAAM,CAAC,UAAU,IAC3B,MAAM,CAAC,KAAK,IAAI,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAC,GACrC,eAAe,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAC,CAClD;KACD,CAAA;AACF,CAAC"} \ No newline at end of file diff --git a/dist/api/network/receive.js b/dist/api/network/receive.js index 52dc80e..5c55e62 100644 --- a/dist/api/network/receive.js +++ b/dist/api/network/receive.js @@ -199,6 +199,7 @@ function parseAndVerifyPayload(data) { const li = data.lastIndexOf('}'); const msg = data.substring(0, li + 1); const sig = data.substring(li + 1); + console.log("RAW PAYLAOD", msg); try { payload = JSON.parse(msg); if (payload && payload.sender && payload.sender.pub_key) { diff --git a/dist/api/network/receive.js.map b/dist/api/network/receive.js.map index d03d997..12a25cf 100644 --- a/dist/api/network/receive.js.map +++ b/dist/api/network/receive.js.map @@ -1 +1 @@ -{"version":3,"file":"receive.js","sourceRoot":"","sources":["../../../api/network/receive.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,sCAAqC;AACrC,kDAA0C;AAC1C,gDAAsC;AACtC,0CAAyC;A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G,QAAQ,CAAC,CAAC,CAAC,EAAC;QAClC,cAAc;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;QACtB,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,EAAE,CAAA,CAAC,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA,EAAE;YAC7C,OAAO,IAAI,GAAG,CAAC,CAAC,CAAA;QACjB,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAC,EAAE,CAAC,CAAA;QACjB,OAAO,OAAO,CAAA;KACd;AACF,CAAC"} \ No newline at end of file diff --git a/dist/api/utils/setup.js b/dist/api/utils/setup.js index d6ca692..21ef253 100644 --- a/dist/api/utils/setup.js +++ b/dist/api/utils/setup.js @@ -55,9 +55,7 @@ CREATE TABLE sphinx_timers ( amount DECIMAL )`); } - catch (e) { - console.log(e); - } + catch (e) { } addTableColumn('sphinx_chats', 'escrow_amount', 'BIGINT'); addTableColumn('sphinx_chats', 'escrow_millis', 'BIGINT'); addTableColumn('sphinx_contacts', 'private_photo', 'BOOLEAN'); diff --git a/dist/api/utils/setup.js.map b/dist/api/utils/setup.js.map index 39f0577..3b397c5 100644 --- a/dist/api/utils/setup.js.map +++ b/dist/api/utils/setup.js.map @@ -1 +1 @@ -{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../api/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA2C;AAC3C,iDAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,gDAAwC;AACxC,8CAA0D;AAE1D,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IACl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