Browse Source

Test logs

hosting-provider
Evan Feenstra 5 years ago
parent
commit
9e0023ae3d
  1. 1
      api/controllers/confirmations.ts
  2. 2
      api/network/send.ts
  3. 1
      dist/api/controllers/confirmations.js
  4. 2
      dist/api/controllers/confirmations.js.map
  5. 3
      dist/api/network/send.js
  6. 2
      dist/api/network/send.js.map

1
api/controllers/confirmations.ts

@ -79,6 +79,7 @@ export async function receiveConfirmation(payload) {
} }
export async function tribeOwnerAutoConfirmation(msg_id){ export async function tribeOwnerAutoConfirmation(msg_id){
console.log('tribeOwnerAutoConfirmation',msg_id)
const message = await models.Message.findOne({ where:{id:msg_id} }) const message = await models.Message.findOne({ where:{id:msg_id} })
if(message){ if(message){
let statusMap = {} let statusMap = {}

2
api/network/send.ts

@ -107,7 +107,7 @@ export function signAndSend(opts, mqttTopic?:string){
try { try {
if(mqttTopic) { if(mqttTopic) {
await tribes.publish(mqttTopic, data, function(){ await tribes.publish(mqttTopic, data, function(){
checkIfConfirmation(data) if(mqttTopic) checkIfConfirmation(data)
}) })
} else { } else {
await LND.keysendMessage({...opts,data}) await LND.keysendMessage({...opts,data})

1
dist/api/controllers/confirmations.js

@ -90,6 +90,7 @@ function receiveConfirmation(payload) {
exports.receiveConfirmation = receiveConfirmation; exports.receiveConfirmation = receiveConfirmation;
function tribeOwnerAutoConfirmation(msg_id) { function tribeOwnerAutoConfirmation(msg_id) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
console.log('tribeOwnerAutoConfirmation', msg_id);
const message = yield models_1.models.Message.findOne({ where: { id: msg_id } }); const message = yield models_1.models.Message.findOne({ where: { id: msg_id } });
if (message) { if (message) {
let statusMap = {}; let statusMap = {};

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

@ -1 +1 @@
{"version":3,"file":"confirmations.js","sourceRoot":"","sources":["../../../api/controllers/confirmations.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wCAAgC;AAChC,sCAAgC;AAChC,0CAAyC;AACzC,2CAA0C;AAC1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CAAC,QAAQ,CAAC,QAAQ,CAAA;YAE/C,MAAM,OAAO,CAAC,MAAM,CAAC;gBACpB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,QAAQ;gBACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;aACpC,CAAC,CAAA;YACF,MAAM,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;aACtD,CAAC,CAAA;SACF;IACF,CAAC;CAAA;AAnBD,gEAmBC"}

3
dist/api/network/send.js

@ -115,7 +115,8 @@ function signAndSend(opts, mqttTopic) {
try { try {
if (mqttTopic) { if (mqttTopic) {
yield tribes.publish(mqttTopic, data, function () { yield tribes.publish(mqttTopic, data, function () {
checkIfConfirmation(data); if (mqttTopic)
checkIfConfirmation(data);
}); });
} }
else { else {

2
dist/api/network/send.js.map

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