Browse Source

logz

bugfix/timeout-logging
Evan Feenstra 5 years ago
parent
commit
100e979a8e
  1. 1
      api/controllers/contacts.ts
  2. 2
      api/helpers.ts
  3. 1
      dist/api/controllers/contacts.js
  4. 2
      dist/api/controllers/contacts.js.map
  5. 2
      dist/api/helpers.js
  6. 2
      dist/api/helpers.js.map

1
api/controllers/contacts.ts

@ -84,6 +84,7 @@ export const updateContact = async (req, res) => {
.filter(c=> !c.fromGroup && c.id!==1 && c.publicKey).map(c=> c.id)
if (contactIds.length == 0) return
console.log("=> send contact_key to", contactIds)
helpers.sendContactKeys({
contactIds: contactIds,
sender: owner,

2
api/helpers.ts

@ -87,7 +87,7 @@ export const performKeysendMessage = async ({ destination_key, amount, msg, succ
// console.log("=> keysend to new contact")
if (success) success(r)
} catch (e) {
console.log("MESSAGE ERROR", e)
console.log("MESSAGE ERROR to", destination_key, e)
if (failure) failure(e)
}
}

1
dist/api/controllers/contacts.js

@ -79,6 +79,7 @@ exports.updateContact = (req, res) => __awaiter(void 0, void 0, void 0, function
.filter(c => !c.fromGroup && c.id !== 1 && c.publicKey).map(c => c.id);
if (contactIds.length == 0)
return;
console.log("=> send contact_key to", contactIds);
helpers.sendContactKeys({
contactIds: contactIds,
sender: owner,

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

File diff suppressed because one or more lines are too long

2
dist/api/helpers.js

@ -94,7 +94,7 @@ exports.performKeysendMessage = ({ destination_key, amount, msg, success, failur
success(r);
}
catch (e) {
console.log("MESSAGE ERROR", e);
console.log("MESSAGE ERROR to", destination_key, e);
if (failure)
failure(e);
}

2
dist/api/helpers.js.map

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